#487818#487818

#487818 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.9% C 0.134 H 133.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#487818
RGBrgb(72, 120, 24)
HSLhsl(90, 67%, 28%)
HSVhsv(90, 80%, 47%)
CMYKcmyk(40%, 0%, 80%, 52.9%)
CIE-LABlab(45.46, -32.45, 44.05)
CIE-LCHlch(45.46, 54.71, 126.38°)
OKLaboklab(51.9% -0.0915 0.0979)
OKLCHoklch(51.9% 0.134 133.1)
XYZxyz(9.5537, 14.8762, 3.2320)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487818 #481878
analogous
#787818 #487818 #187818
triadic
#487818 #184878 #781848
tetradic
#487818 #187878 #481878 #781818
square
#487818 #187878 #481878 #781818
split-complementary
#487818 #181878 #781878
monochromatic
#0F1A05 #29450E #487818 #67AB22 #85D634

Accessibility & contrast

On white

5.28
#487818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#487818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487818
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487818#FFFFFF#000000##FFFFFF
##4878181.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#487366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #487818;
/* rgb */ color: rgb(72, 120, 24);
/* oklch */ color: oklch(51.9% 0.134 133.1);
Tailwind
colors: {
  custom: {
    50: '#809f5d',
    500: '#487818',
    950: '#000000',
  },
}
SCSS
$custom: #487818;
$custom-light: #809f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#487818",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51899,
    "c": 0.13394,
    "h": 133.1
  },
  "luminance": 0.14877
}

Semantic roles & 50–950 ramp

primary
#487818
secondary
#763FAD
accent
#3EEA94
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #487818

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

Preview Lab → · Contrast checker → · Palette generator →

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