#487212#487212

#487212 is a mid, vivid yellow-green. Relative luminance 0.135; OKLCH L 50.2% C 0.129 H 131.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#487212
RGBrgb(72, 114, 18)
HSLhsl(86, 73%, 26%)
HSVhsv(86, 84%, 45%)
CMYKcmyk(36.8%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.44, -30.03, 44.12)
CIE-LCHlch(43.44, 53.37, 124.24°)
OKLaboklab(50.24% -0.0853 0.097)
OKLCHoklch(50.24% 0.129 131.3)
XYZxyz(8.7989, 13.4557, 2.7057)
Luminance0.1346 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487212 #3C1272
analogous
#726C12 #487212 #187212
triadic
#487212 #124872 #721248
tetradic
#487212 #12726C #3C1272 #721218
square
#487212 #12726C #3C1272 #721218
split-complementary
#487212 #121872 #6C1272
monochromatic
#111A04 #273D0A #487212 #69A71A #8BDC23

Accessibility & contrast

On white

5.69
#487212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #487212
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487212#FFFFFF#000000##FFFFFF
##4872121.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#72661D
Tritanopia (blue-blind)
#496D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #487212;
/* rgb */ color: rgb(72, 114, 18);
/* oklch */ color: oklch(50.2% 0.129 131.3);
Tailwind
colors: {
  custom: {
    50: '#7f9b5a',
    500: '#487212',
    950: '#000000',
  },
}
SCSS
$custom: #487212;
$custom-light: #7f9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#487212",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 86.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50236,
    "c": 0.1292,
    "h": 131.3
  },
  "luminance": 0.13456
}

Semantic roles & 50–950 ramp

primary
#487212
secondary
#6937A9
accent
#38EF88
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #487212

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

Preview Lab → · Contrast checker → · Palette generator →

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