#487216#487216

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

Color values

HEX#487216
RGBrgb(72, 114, 22)
HSLhsl(87, 68%, 27%)
HSVhsv(87, 81%, 45%)
CMYKcmyk(36.8%, 0%, 80.7%, 55.3%)
CIE-LABlab(43.46, -29.81, 42.84)
CIE-LCHlch(43.46, 52.19, 124.84°)
OKLaboklab(50.26% -0.0845 0.095)
OKLCHoklch(50.26% 0.127 131.6)
XYZxyz(8.8345, 13.4699, 2.8934)
Luminance0.1347 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487216 #401672
analogous
#726E16 #487216 #1A7216
triadic
#487216 #164872 #721648
tetradic
#487216 #16726E #401672 #72161A
square
#487216 #16726E #401672 #72161A
split-complementary
#487216 #161A72 #6E1672
monochromatic
#101A05 #283F0C #487216 #68A520 #89D62C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##487216#FFFFFF#000000##FFFFFF
##4872161.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)
#776900
Deuteranopia (green-blind)
#726620
Tritanopia (blue-blind)
#496D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #487216;
/* rgb */ color: rgb(72, 114, 22);
/* oklch */ color: oklch(50.3% 0.127 131.6);
Tailwind
colors: {
  custom: {
    50: '#7f9b5b',
    500: '#487216',
    950: '#000000',
  },
}
SCSS
$custom: #487216;
$custom-light: #7f9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#487216",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 87.391,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.12711,
    "h": 131.6
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#487216
secondary
#6D3CA8
accent
#3DEB8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #487216

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

Preview Lab → · Contrast checker → · Palette generator →

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