Xerobit

Green Hex Code and Color Values

Green (CSS keyword green) is #008000: rgb(0, 128, 0), hsl(120, 100%, 25%).

Green: #008000

  • Hex
    #008000
  • RGB
    rgb(0, 128, 0)
  • HSL
    hsl(120, 100%, 25%)
  • OKLCH
    oklch(52.0% 0.1769 142.5)
  • CMYK
    100%, 0%, 100%, 50%
  • CSS name
    green

Where the name green comes from

green is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #008000; CSS Color 4 says these came from the VGA palette.

green is #008000: its green channel is 128 of 255, half the channel value of lime (#00FF00). Because sRGB values are gamma-encoded, half the channel value is not half the light: the relative luminance of green is 0.154 against 0.715 for lime (21.6%). HTML 4.01 and CSS keep both: lime is the pure green with the channel at 255 and green the darker one, so a page that asks for green does not get #00FF00. darkgreen (#006400) is darker still.

No three-digit short form.

Shades and tints of Green

  • 10% white #1A8D1A forestgreen; 10% black #007300 green
  • 20% white #339933 forestgreen; 20% black #006600 darkgreen
  • 30% white #4DA64D mediumseagreen; 30% black #005A00 darkgreen
  • 40% white #66B366 mediumseagreen; 40% black #004D00
  • 50% white #80C080 darkseagreen; 50% black #004000

Contrast of #008000

Against white 5.14:1 (passes AA), against black 4.09:1 (large text only); white text reads better on Green. In HSV it is hsv(120, 100%, 50%).

Lightness rank 119 of 139; best partner white, 5.14:1.

Closest names to Green

Green has OKLCH hue 142 degrees.

NameHexOKLab distanceThan Green
forestgreen#228B220.039lighter
seagreen#2E8B570.082lighter
darkgreen#0064000.088darker
darkolivegreen#556B2F0.097darker
olivedrab#6B8E230.099lighter
olive#8080000.116lighter
teal#0080800.143lighter

Color harmony for Green

  • Complementary: #800080 purple
  • Analogous: #408000 forestgreen, #008040 seagreen
  • Triadic: #000080 navy, #800000 maroon
  • Split complementary: #400080 indigo, #800040

Green with color vision deficiency

  • Protanopia: #837200, like orangered (#FF4500), chocolate (#D2691E), olive (#808000)
  • Deuteranopia: #776A18, like firebrick (#B22222), sienna (#A0522D)
  • Tritanopia: #007C6C

FAQ

What is the hex code for Green?

#008000, or the keyword green.

Which named color is closest to Green?

forestgreen (#228B22), then seagreen and darkgreen.