#408218#408218

#408218 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.2% C 0.151 H 136.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#408218
RGBrgb(64, 130, 24)
HSLhsl(97, 69%, 30%)
HSVhsv(97, 82%, 51%)
CMYKcmyk(50.8%, 0%, 81.5%, 49%)
CIE-LABlab(48.41, -39.55, 46.70)
CIE-LCHlch(48.41, 61.20, 130.26°)
OKLaboklab(54.21% -0.11 0.1036)
OKLCHoklch(54.21% 0.151 136.7)
XYZxyz(10.2616, 17.1205, 3.6278)
Luminance0.1712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408218 #5A1882
analogous
#758218 #408218 #188225
triadic
#408218 #184082 #821840
tetradic
#408218 #187582 #5A1882 #822518
square
#408218 #187582 #5A1882 #822518
split-complementary
#408218 #251882 #821875
monochromatic
#0D1B05 #274E0E #408218 #59B622 #76DB3A

Accessibility & contrast

On white

4.75
#408218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#408218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408218
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408218#FFFFFF#000000##FFFFFF
##4082181.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#3C7D6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408218;
/* rgb */ color: rgb(64, 130, 24);
/* oklch */ color: oklch(54.2% 0.151 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ca75f',
    500: '#408218',
    950: '#000000',
  },
}
SCSS
$custom: #408218;
$custom-light: #7ca75f;
$custom-dark: #000000;
JSON
{
  "hex": "#408218",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 97.358,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54214,
    "c": 0.15108,
    "h": 136.7
  },
  "luminance": 0.17121
}

Semantic roles & 50–950 ramp

primary
#408218
secondary
#8940B6
accent
#3CECA9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408218

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

Preview Lab → · Contrast checker → · Palette generator →

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