#487218#487218

#487218 is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.3% C 0.126 H 131.8°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#487218
RGBrgb(72, 114, 24)
HSLhsl(88, 65%, 27%)
HSVhsv(88, 79%, 45%)
CMYKcmyk(36.8%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.47, -29.69, 42.14)
CIE-LCHlch(43.47, 51.55, 125.17°)
OKLaboklab(50.27% -0.084 0.0939)
OKLCHoklch(50.27% 0.126 131.8)
XYZxyz(8.8546, 13.4779, 2.9989)
Luminance0.1348 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487218 #421872
analogous
#726F18 #487218 #1B7218
triadic
#487218 #184872 #721848
tetradic
#487218 #18726F #421872 #72181B
square
#487218 #18726F #421872 #72181B
split-complementary
#487218 #181B72 #6F1872
monochromatic
#101905 #283F0D #487218 #68A523 #88D431

Accessibility & contrast

On white

5.68
#487218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#487218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487218
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487218#FFFFFF#000000##FFFFFF
##4872181.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776904
Deuteranopia (green-blind)
#716621
Tritanopia (blue-blind)
#496D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #487218;
/* rgb */ color: rgb(72, 114, 24);
/* oklch */ color: oklch(50.3% 0.126 131.8);
Tailwind
colors: {
  custom: {
    50: '#7f9b5c',
    500: '#487218',
    950: '#000000',
  },
}
SCSS
$custom: #487218;
$custom-light: #7f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#487218",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 88,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50273,
    "c": 0.12596,
    "h": 131.8
  },
  "luminance": 0.13478
}

Semantic roles & 50–950 ramp

primary
#487218
secondary
#6F3EA7
accent
#40E88E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #487218

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

Preview Lab → · Contrast checker → · Palette generator →

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