#487F12#487F12

#487F12 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.8% C 0.146 H 133.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#487F12
RGBrgb(72, 127, 18)
HSLhsl(90, 75%, 28%)
HSVhsv(90, 86%, 50%)
CMYKcmyk(43.3%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.75, -35.87, 48.01)
CIE-LCHlch(47.75, 59.92, 126.76°)
OKLaboklab(53.76% -0.101 0.1052)
OKLCHoklch(53.76% 0.146 133.8)
XYZxyz(10.3709, 16.5996, 3.2297)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487F12 #49127F
analogous
#7E7F12 #487F12 #127F12
triadic
#487F12 #12487F #7F1248
tetradic
#487F12 #127E7F #49127F #7F1212
square
#487F12 #127E7F #49127F #7F1212
split-complementary
#487F12 #12127F #7F127E
monochromatic
#0F1B04 #2A490A #487F12 #66B51A #85E12B

Accessibility & contrast

On white

4.86
#487F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#487F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487F12
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487F12#FFFFFF#000000##FFFFFF
##487F121.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#487A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #487f12;
/* rgb */ color: rgb(72, 127, 18);
/* oklch */ color: oklch(53.8% 0.146 133.8);
Tailwind
colors: {
  custom: {
    50: '#81a45c',
    500: '#487f12',
    950: '#000000',
  },
}
SCSS
$custom: #487f12;
$custom-light: #81a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#487f12",
  "rgb": {
    "r": 72,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 90.275,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53763,
    "c": 0.14586,
    "h": 133.8
  },
  "luminance": 0.166
}

Semantic roles & 50–950 ramp

primary
#487F12
secondary
#7738B5
accent
#36F295
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #487F12

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

Preview Lab → · Contrast checker → · Palette generator →

#487F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva