#408F12#408F12

#408F12 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.7% C 0.169 H 137.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#408F12
RGBrgb(64, 143, 18)
HSLhsl(98, 78%, 32%)
HSVhsv(98, 87%, 56%)
CMYKcmyk(55.2%, 0%, 87.4%, 43.9%)
CIE-LABlab(52.71, -44.99, 52.26)
CIE-LCHlch(52.71, 68.96, 130.73°)
OKLaboklab(57.74% -0.1249 0.1144)
OKLCHoklch(57.74% 0.169 137.5)
XYZxyz(12.0456, 20.7776, 3.9479)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F12 #61128F
analogous
#7F8F12 #408F12 #128F23
triadic
#408F12 #12408F #8F1240
tetradic
#408F12 #127F8F #61128F #8F2312
square
#408F12 #127F8F #61128F #8F2312
split-complementary
#408F12 #23128F #8F127F
monochromatic
#0F2204 #28590B #408F12 #58C519 #76E636

Accessibility & contrast

On white

4.07
#408F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#408F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F12
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F12#FFFFFF#000000##000000
##408F121.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#3A8A79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f12;
/* rgb */ color: rgb(64, 143, 18);
/* oklch */ color: oklch(57.7% 0.169 137.5);
Tailwind
colors: {
  custom: {
    50: '#7eb05f',
    500: '#408f12',
    950: '#000000',
  },
}
SCSS
$custom: #408f12;
$custom-light: #7eb05f;
$custom-dark: #000000;
JSON
{
  "hex": "#408f12",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 97.92,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57744,
    "c": 0.16935,
    "h": 137.5
  },
  "luminance": 0.20779
}

Semantic roles & 50–950 ramp

primary
#408F12
secondary
#913AC3
accent
#34F4AD
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1105
muted
#7C8079

Preview Lab

Preview with #408F12

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

Preview Lab → · Contrast checker → · Palette generator →

#408F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva