#487217#487217

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

Color values

HEX#487217
RGBrgb(72, 114, 23)
HSLhsl(88, 66%, 27%)
HSVhsv(88, 80%, 45%)
CMYKcmyk(36.8%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.47, -29.76, 42.50)
CIE-LCHlch(43.47, 51.88, 125.00°)
OKLaboklab(50.27% -0.0842 0.0944)
OKLCHoklch(50.27% 0.127 131.7)
XYZxyz(8.8444, 13.4739, 2.9452)
Luminance0.1347 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487217 #411772
analogous
#726F17 #487217 #1B7217
triadic
#487217 #174872 #721748
tetradic
#487217 #17726F #411772 #72171B
square
#487217 #17726F #411772 #72171B
split-complementary
#487217 #171B72 #6F1772
monochromatic
#101905 #283F0D #487217 #68A521 #88D52E

Accessibility & contrast

On white

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

On black

3.69
#487217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##487217#FFFFFF#000000##FFFFFF
##4872171.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #487217;
/* rgb */ color: rgb(72, 114, 23);
/* oklch */ color: oklch(50.3% 0.127 131.7);
Tailwind
colors: {
  custom: {
    50: '#7f9b5c',
    500: '#487217',
    950: '#000000',
  },
}
SCSS
$custom: #487217;
$custom-light: #7f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#487217",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 87.692,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50267,
    "c": 0.12654,
    "h": 131.7
  },
  "luminance": 0.13474
}

Semantic roles & 50–950 ramp

primary
#487217
secondary
#6E3DA8
accent
#3EE98D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #487217

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

Preview Lab → · Contrast checker → · Palette generator →

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