#487F1F#487F1F

#487F1F is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.8% C 0.139 H 134.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#487F1F
RGBrgb(72, 127, 31)
HSLhsl(94, 61%, 31%)
HSVhsv(94, 76%, 50%)
CMYKcmyk(43.3%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.82, -35.11, 43.79)
CIE-LCHlch(47.82, 56.13, 128.72°)
OKLaboklab(53.84% -0.0981 0.0984)
OKLCHoklch(53.84% 0.139 134.9)
XYZxyz(10.5090, 16.6548, 3.9570)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487F1F #561F7F
analogous
#787F1F #487F1F #1F7F26
triadic
#487F1F #1F487F #7F1F48
tetradic
#487F1F #1F787F #561F7F #7F261F
square
#487F1F #1F787F #561F7F #7F261F
split-complementary
#487F1F #261F7F #7F1F78
monochromatic
#101D07 #2C4E13 #487F1F #64B02B #82D246

Accessibility & contrast

On white

4.85
#487F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#487F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487F1F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487F1F#FFFFFF#000000##FFFFFF
##487F1F1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#477A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #487f1f;
/* rgb */ color: rgb(72, 127, 31);
/* oklch */ color: oklch(53.8% 0.139 134.9);
Tailwind
colors: {
  custom: {
    50: '#80a462',
    500: '#487f1f',
    950: '#000000',
  },
}
SCSS
$custom: #487f1f;
$custom-light: #80a462;
$custom-dark: #000000;
JSON
{
  "hex": "#487f1f",
  "rgb": {
    "r": 72,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 94.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53844,
    "c": 0.13898,
    "h": 134.9
  },
  "luminance": 0.16655
}

Semantic roles & 50–950 ramp

primary
#487F1F
secondary
#8548B2
accent
#44E4A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #487F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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