#487018#487018

#487018 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.7% C 0.123 H 131.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#487018
RGBrgb(72, 112, 24)
HSLhsl(87, 65%, 27%)
HSVhsv(87, 79%, 44%)
CMYKcmyk(35.7%, 0%, 78.6%, 56.1%)
CIE-LABlab(42.81, -28.75, 41.50)
CIE-LCHlch(42.81, 50.49, 124.72°)
OKLaboklab(49.73% -0.0814 0.0925)
OKLCHoklch(49.73% 0.123 131.4)
XYZxyz(8.6314, 13.0317, 2.9246)
Luminance0.1303 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487018 #401870
analogous
#706C18 #487018 #1C7018
triadic
#487018 #184870 #701848
tetradic
#487018 #18706C #401870 #70181C
square
#487018 #18706C #401870 #70181C
split-complementary
#487018 #181C70 #6C1870
monochromatic
#101905 #283E0D #487018 #68A223 #89D330

Accessibility & contrast

On white

5.82
#487018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#487018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487018
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487018#FFFFFF#000000##FFFFFF
##4870181.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#706421
Tritanopia (blue-blind)
#496B5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #487018;
/* rgb */ color: rgb(72, 112, 24);
/* oklch */ color: oklch(49.7% 0.123 131.4);
Tailwind
colors: {
  custom: {
    50: '#7f995c',
    500: '#487018',
    950: '#000000',
  },
}
SCSS
$custom: #487018;
$custom-light: #7f995c;
$custom-dark: #000000;
JSON
{
  "hex": "#487018",
  "rgb": {
    "r": 72,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 87.273,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.49732,
    "c": 0.12326,
    "h": 131.4
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#487018
secondary
#6D3EA5
accent
#40E88C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #487018

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

Preview Lab → · Contrast checker → · Palette generator →

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