#487A1F#487A1F

#487A1F is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.5% C 0.132 H 134.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#487A1F
RGBrgb(72, 122, 31)
HSLhsl(93, 59%, 30%)
HSVhsv(93, 75%, 48%)
CMYKcmyk(41%, 0%, 74.6%, 52.2%)
CIE-LABlab(46.17, -32.89, 42.14)
CIE-LCHlch(46.17, 53.45, 127.97°)
OKLaboklab(52.49% -0.0921 0.095)
OKLCHoklch(52.49% 0.132 134.1)
XYZxyz(9.8792, 15.3952, 3.7471)
Luminance0.1540 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487A1F #511F7A
analogous
#757A1F #487A1F #1F7A24
triadic
#487A1F #1F487A #7A1F48
tetradic
#487A1F #1F757A #511F7A #7A241F
square
#487A1F #1F757A #511F7A #7A241F
split-complementary
#487A1F #241F7A #7A1F75
monochromatic
#0E1806 #2B4913 #487A1F #65AB2B #83CF44

Accessibility & contrast

On white

5.15
#487A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#487A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487A1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487A1F#FFFFFF#000000##FFFFFF
##487A1F1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#487568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #487a1f;
/* rgb */ color: rgb(72, 122, 31);
/* oklch */ color: oklch(52.5% 0.132 134.1);
Tailwind
colors: {
  custom: {
    50: '#80a161',
    500: '#487a1f',
    950: '#000000',
  },
}
SCSS
$custom: #487a1f;
$custom-light: #80a161;
$custom-dark: #000000;
JSON
{
  "hex": "#487a1f",
  "rgb": {
    "r": 72,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 92.967,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.13229,
    "h": 134.1
  },
  "luminance": 0.15396
}

Semantic roles & 50–950 ramp

primary
#487A1F
secondary
#7F47AD
accent
#45E39C
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #487A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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