#408318#408318

#408318 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.152 H 136.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#408318
RGBrgb(64, 131, 24)
HSLhsl(98, 69%, 30%)
HSVhsv(98, 82%, 51%)
CMYKcmyk(51.1%, 0%, 81.7%, 48.6%)
CIE-LABlab(48.74, -39.96, 47.01)
CIE-LCHlch(48.74, 61.70, 130.37°)
OKLaboklab(54.49% -0.1111 0.1042)
OKLCHoklch(54.49% 0.152 136.8)
XYZxyz(10.3952, 17.3878, 3.6724)
Luminance0.1739 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408318 #5B1883
analogous
#758318 #408318 #188325
triadic
#408318 #184083 #831840
tetradic
#408318 #187583 #5B1883 #832518
square
#408318 #187583 #5B1883 #832518
split-complementary
#408318 #251883 #831875
monochromatic
#0D1C05 #274F0F #408318 #59B721 #76DB3A

Accessibility & contrast

On white

4.69
#408318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#408318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408318
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408318#FFFFFF#000000##FFFFFF
##4083181.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#3C7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #408318;
/* rgb */ color: rgb(64, 131, 24);
/* oklch */ color: oklch(54.5% 0.152 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ca85f',
    500: '#408318',
    950: '#000000',
  },
}
SCSS
$custom: #408318;
$custom-light: #7ca85f;
$custom-dark: #000000;
JSON
{
  "hex": "#408318",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 97.57,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54489,
    "c": 0.15233,
    "h": 136.8
  },
  "luminance": 0.17389
}

Semantic roles & 50–950 ramp

primary
#408318
secondary
#8A40B7
accent
#3CECAA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408318

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

Preview Lab → · Contrast checker → · Palette generator →

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