#408215#408215

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

Color values

HEX#408215
RGBrgb(64, 130, 21)
HSLhsl(96, 72%, 30%)
HSVhsv(96, 84%, 51%)
CMYKcmyk(50.8%, 0%, 83.8%, 49%)
CIE-LABlab(48.40, -39.72, 47.60)
CIE-LCHlch(48.40, 62.00, 129.84°)
OKLaboklab(54.2% -0.1106 0.105)
OKLCHoklch(54.2% 0.153 136.5)
XYZxyz(10.2321, 17.1087, 3.4725)
Luminance0.1711 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408215 #571582
analogous
#778215 #408215 #158220
triadic
#408215 #154082 #821540
tetradic
#408215 #157782 #571582 #822015
square
#408215 #157782 #571582 #822015
split-complementary
#408215 #201582 #821577
monochromatic
#0D1A04 #264D0C #408215 #5AB71E #77DE33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408215#FFFFFF#000000##FFFFFF
##4082151.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)
#7E7122
Tritanopia (blue-blind)
#3C7D6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408215;
/* rgb */ color: rgb(64, 130, 21);
/* oklch */ color: oklch(54.2% 0.153 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ca75d',
    500: '#408215',
    950: '#000000',
  },
}
SCSS
$custom: #408215;
$custom-light: #7ca75d;
$custom-dark: #000000;
JSON
{
  "hex": "#408215",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 96.33,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.15252,
    "h": 136.5
  },
  "luminance": 0.17109
}

Semantic roles & 50–950 ramp

primary
#408215
secondary
#863CB7
accent
#39EFA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408215

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

Preview Lab → · Contrast checker → · Palette generator →

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