#487612#487612

#487612 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.3% C 0.134 H 132.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#487612
RGBrgb(72, 118, 18)
HSLhsl(88, 74%, 27%)
HSVhsv(88, 85%, 46%)
CMYKcmyk(39%, 0%, 84.7%, 53.7%)
CIE-LABlab(44.77, -31.87, 45.33)
CIE-LCHlch(44.77, 55.41, 125.11°)
OKLaboklab(51.32% -0.0903 0.0996)
OKLCHoklch(51.32% 0.134 132.2)
XYZxyz(9.2600, 14.3778, 2.8594)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487612 #401276
analogous
#767212 #487612 #167612
triadic
#487612 #124876 #761248
tetradic
#487612 #127672 #401276 #761216
square
#487612 #127672 #401276 #761216
split-complementary
#487612 #121676 #721276
monochromatic
#101B04 #28410A #487612 #68AB1A #89DE25

Accessibility & contrast

On white

5.42
#487612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#487612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487612
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487612#FFFFFF#000000##FFFFFF
##4876121.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#75691E
Tritanopia (blue-blind)
#497164
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #487612;
/* rgb */ color: rgb(72, 118, 18);
/* oklch */ color: oklch(51.3% 0.134 132.2);
Tailwind
colors: {
  custom: {
    50: '#809e5a',
    500: '#487612',
    950: '#000000',
  },
}
SCSS
$custom: #487612;
$custom-light: #809e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#487612",
  "rgb": {
    "r": 72,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 87.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.1344,
    "h": 132.2
  },
  "luminance": 0.14378
}

Semantic roles & 50–950 ramp

primary
#487612
secondary
#6D37AD
accent
#38F08D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #487612

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

Preview Lab → · Contrast checker → · Palette generator →

#487612 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva