#487918#487918

#487918 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.135 H 133.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#487918
RGBrgb(72, 121, 24)
HSLhsl(90, 67%, 28%)
HSVhsv(90, 80%, 47%)
CMYKcmyk(40.5%, 0%, 80.2%, 52.5%)
CIE-LABlab(45.80, -32.90, 44.36)
CIE-LCHlch(45.80, 55.23, 126.57°)
OKLaboklab(52.17% -0.0927 0.0985)
OKLCHoklch(52.17% 0.135 133.3)
XYZxyz(9.6746, 15.1179, 3.2723)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487918 #491879
analogous
#787918 #487918 #187918
triadic
#487918 #184879 #791848
tetradic
#487918 #187879 #491879 #791818
square
#487918 #187879 #491879 #791818
split-complementary
#487918 #181879 #791878
monochromatic
#0F1A05 #2A460E #487918 #66AC22 #85D735

Accessibility & contrast

On white

5.22
#487918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#487918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487918
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487918#FFFFFF#000000##FFFFFF
##4879181.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F01
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#487467
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #487918;
/* rgb */ color: rgb(72, 121, 24);
/* oklch */ color: oklch(52.2% 0.135 133.3);
Tailwind
colors: {
  custom: {
    50: '#80a05d',
    500: '#487918',
    950: '#000000',
  },
}
SCSS
$custom: #487918;
$custom-light: #80a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#487918",
  "rgb": {
    "r": 72,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 90.309,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.13525,
    "h": 133.3
  },
  "luminance": 0.15118
}

Semantic roles & 50–950 ramp

primary
#487918
secondary
#773FAE
accent
#3EEA95
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #487918

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

Preview Lab → · Contrast checker → · Palette generator →

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