#408718#408718

#408718 is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 55.6% C 0.157 H 137.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#408718
RGBrgb(64, 135, 24)
HSLhsl(98, 70%, 31%)
HSVhsv(98, 82%, 53%)
CMYKcmyk(52.6%, 0%, 82.2%, 47.1%)
CIE-LABlab(50.08, -41.58, 48.25)
CIE-LCHlch(50.08, 63.69, 130.75°)
OKLaboklab(55.58% -0.1154 0.1068)
OKLCHoklch(55.58% 0.157 137.2)
XYZxyz(10.9428, 18.4831, 3.8549)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408718 #5F1887
analogous
#778718 #408718 #188727
triadic
#408718 #184087 #871840
tetradic
#408718 #187787 #5F1887 #872718
square
#408718 #187787 #5F1887 #872718
split-complementary
#408718 #271887 #871877
monochromatic
#0F1F06 #27530F #408718 #59BB21 #76DC3D

Accessibility & contrast

On white

4.47
#408718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#408718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408718
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408718#FFFFFF#000000##000000
##4087181.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#837525
Tritanopia (blue-blind)
#3B8273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #408718;
/* rgb */ color: rgb(64, 135, 24);
/* oklch */ color: oklch(55.6% 0.157 137.2);
Tailwind
colors: {
  custom: {
    50: '#7dab5f',
    500: '#408718',
    950: '#000000',
  },
}
SCSS
$custom: #408718;
$custom-light: #7dab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408718",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 98.378,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55585,
    "c": 0.15727,
    "h": 137.2
  },
  "luminance": 0.18484
}

Semantic roles & 50–950 ramp

primary
#408718
secondary
#8F40BB
accent
#3BEDAD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408718

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

Preview Lab → · Contrast checker → · Palette generator →

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