#487B1F#487B1F

#487B1F is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.134 H 134.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#487B1F
RGBrgb(72, 123, 31)
HSLhsl(93, 60%, 30%)
HSVhsv(93, 75%, 48%)
CMYKcmyk(41.5%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.50, -33.34, 42.47)
CIE-LCHlch(46.50, 53.99, 128.13°)
OKLaboklab(52.76% -0.0933 0.0957)
OKLCHoklch(52.76% 0.134 134.3)
XYZxyz(10.0026, 15.6421, 3.7882)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487B1F #521F7B
analogous
#767B1F #487B1F #1F7B24
triadic
#487B1F #1F487B #7B1F48
tetradic
#487B1F #1F767B #521F7B #7B241F
square
#487B1F #1F767B #521F7B #7B241F
split-complementary
#487B1F #241F7B #7B1F76
monochromatic
#0F1906 #2B4A13 #487B1F #65AC2B #83D044

Accessibility & contrast

On white

5.09
#487B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#487B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487B1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487B1F#FFFFFF#000000##FFFFFF
##487B1F1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710F
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#477669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #487b1f;
/* rgb */ color: rgb(72, 123, 31);
/* oklch */ color: oklch(52.8% 0.134 134.3);
Tailwind
colors: {
  custom: {
    50: '#80a161',
    500: '#487b1f',
    950: '#000000',
  },
}
SCSS
$custom: #487b1f;
$custom-light: #80a161;
$custom-dark: #000000;
JSON
{
  "hex": "#487b1f",
  "rgb": {
    "r": 72,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 93.261,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52762,
    "c": 0.13364,
    "h": 134.3
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#487B1F
secondary
#8048AE
accent
#45E39C
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #487B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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