#408126#408126

#408126 is a mid, vivid green. Relative luminance 0.169; OKLCH L 54.0% C 0.141 H 138.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#408126
RGBrgb(64, 129, 38)
HSLhsl(103, 54%, 33%)
HSVhsv(103, 71%, 51%)
CMYKcmyk(50.4%, 0%, 70.5%, 49.4%)
CIE-LABlab(48.17, -38.11, 41.20)
CIE-LCHlch(48.17, 56.12, 132.77°)
OKLaboklab(54.05% -0.1052 0.0941)
OKLCHoklch(54.05% 0.141 138.2)
XYZxyz(10.3141, 16.9297, 4.5576)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408126 #672681
analogous
#6D8126 #408126 #268139
triadic
#408126 #264081 #812640
tetradic
#408126 #266D81 #672681 #813926
square
#408126 #266D81 #672681 #813926
split-complementary
#408126 #392681 #81266D
monochromatic
#11220A #295218 #408126 #57B034 #77CD55

Accessibility & contrast

On white

4.79
#408126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#408126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408126
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408126#FFFFFF#000000##FFFFFF
##4081261.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857619
Deuteranopia (green-blind)
#7D702E
Tritanopia (blue-blind)
#3B7C6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #408126;
/* rgb */ color: rgb(64, 129, 38);
/* oklch */ color: oklch(54.0% 0.141 138.2);
Tailwind
colors: {
  custom: {
    50: '#7ba666',
    500: '#408126',
    950: '#000000',
  },
}
SCSS
$custom: #408126;
$custom-light: #7ba666;
$custom-dark: #000000;
JSON
{
  "hex": "#408126",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 102.857,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54047,
    "c": 0.14114,
    "h": 138.2
  },
  "luminance": 0.1693
}

Semantic roles & 50–950 ramp

primary
#408126
secondary
#9651B1
accent
#4ADEB4
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #408126

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#408126 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva