#408115#408115

#408115 is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 53.9% C 0.151 H 136.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#408115
RGBrgb(64, 129, 21)
HSLhsl(96, 72%, 29%)
HSVhsv(96, 84%, 51%)
CMYKcmyk(50.4%, 0%, 83.7%, 49.4%)
CIE-LABlab(48.06, -39.31, 47.30)
CIE-LCHlch(48.06, 61.50, 129.73°)
OKLaboklab(53.92% -0.1095 0.1043)
OKLCHoklch(53.92% 0.151 136.4)
XYZxyz(10.0997, 16.8440, 3.4283)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408115 #561581
analogous
#768115 #408115 #158120
triadic
#408115 #154081 #811540
tetradic
#408115 #157681 #561581 #812015
square
#408115 #157681 #561581 #812015
split-complementary
#408115 #201581 #811576
monochromatic
#0D1A04 #264C0C #408115 #5AB61E #77DE33

Accessibility & contrast

On white

4.81
#408115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#408115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408115
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408115#FFFFFF#000000##FFFFFF
##4081151.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#3D7C6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #408115;
/* rgb */ color: rgb(64, 129, 21);
/* oklch */ color: oklch(53.9% 0.151 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ca65d',
    500: '#408115',
    950: '#000000',
  },
}
SCSS
$custom: #408115;
$custom-light: #7ca65d;
$custom-dark: #000000;
JSON
{
  "hex": "#408115",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 96.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53923,
    "c": 0.15127,
    "h": 136.4
  },
  "luminance": 0.16845
}

Semantic roles & 50–950 ramp

primary
#408115
secondary
#853CB6
accent
#39EFA6
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408115

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

Preview Lab → · Contrast checker → · Palette generator →

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