#408518#408518

#408518 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.0% C 0.155 H 137.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#408518
RGBrgb(64, 133, 24)
HSLhsl(98, 69%, 31%)
HSVhsv(98, 82%, 52%)
CMYKcmyk(51.9%, 0%, 82%, 47.8%)
CIE-LABlab(49.41, -40.77, 47.63)
CIE-LCHlch(49.41, 62.70, 130.56°)
OKLaboklab(55.04% -0.1133 0.1055)
OKLCHoklch(55.04% 0.155 137)
XYZxyz(10.6664, 17.9302, 3.7628)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408518 #5D1885
analogous
#768518 #408518 #188527
triadic
#408518 #184085 #851840
tetradic
#408518 #187685 #5D1885 #852718
square
#408518 #187685 #5D1885 #852718
split-complementary
#408518 #271885 #851876
monochromatic
#0E1D05 #27510F #408518 #59B921 #76DC3C

Accessibility & contrast

On white

4.58
#408518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#408518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408518
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408518#FFFFFF#000000##000000
##4085181.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#3C8071
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #408518;
/* rgb */ color: rgb(64, 133, 24);
/* oklch */ color: oklch(55.0% 0.155 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ca95f',
    500: '#408518',
    950: '#000000',
  },
}
SCSS
$custom: #408518;
$custom-light: #7ca95f;
$custom-dark: #000000;
JSON
{
  "hex": "#408518",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 97.982,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55037,
    "c": 0.15481,
    "h": 137
  },
  "luminance": 0.17931
}

Semantic roles & 50–950 ramp

primary
#408518
secondary
#8C40B9
accent
#3CECAB
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408518

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

Preview Lab → · Contrast checker → · Palette generator →

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