#487E12#487E12

#487E12 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.145 H 133.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#487E12
RGBrgb(72, 126, 18)
HSLhsl(90, 75%, 28%)
HSVhsv(90, 86%, 49%)
CMYKcmyk(42.9%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.42, -35.43, 47.71)
CIE-LCHlch(47.42, 59.43, 126.60°)
OKLaboklab(53.49% -0.0998 0.1046)
OKLCHoklch(53.49% 0.145 133.7)
XYZxyz(10.2424, 16.3426, 3.1869)
Luminance0.1634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487E12 #48127E
analogous
#7E7E12 #487E12 #127E12
triadic
#487E12 #12487E #7E1248
tetradic
#487E12 #127E7E #48127E #7E1212
square
#487E12 #127E7E #48127E #7E1212
split-complementary
#487E12 #12127E #7E127E
monochromatic
#0F1B04 #29480A #487E12 #67B41A #85E12A

Accessibility & contrast

On white

4.92
#487E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#487E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487E12
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487E12#FFFFFF#000000##FFFFFF
##487E121.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7C6F1F
Tritanopia (blue-blind)
#48796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #487e12;
/* rgb */ color: rgb(72, 126, 18);
/* oklch */ color: oklch(53.5% 0.145 133.7);
Tailwind
colors: {
  custom: {
    50: '#81a45c',
    500: '#487e12',
    950: '#000000',
  },
}
SCSS
$custom: #487e12;
$custom-light: #81a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#487e12",
  "rgb": {
    "r": 72,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53492,
    "c": 0.1446,
    "h": 133.7
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#487E12
secondary
#7638B4
accent
#36F294
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #487E12

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

Preview Lab → · Contrast checker → · Palette generator →

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