#487828#487828

#487828 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.0% C 0.123 H 135.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#487828
RGBrgb(72, 120, 40)
HSLhsl(96, 50%, 31%)
HSVhsv(96, 67%, 47%)
CMYKcmyk(40%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.58, -31.22, 37.65)
CIE-LCHlch(45.58, 48.91, 129.66°)
OKLaboklab(52.04% -0.0868 0.0868)
OKLCHoklch(52.04% 0.123 135)
XYZxyz(9.7717, 14.9634, 4.3804)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487828 #582878
analogous
#707828 #487828 #287830
triadic
#487828 #284878 #782848
tetradic
#487828 #287078 #582878 #783028
square
#487828 #287078 #582878 #783028
split-complementary
#487828 #302878 #782870
monochromatic
#111C09 #2C4A19 #487828 #64A637 #82C654

Accessibility & contrast

On white

5.26
#487828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#487828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487828
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487828#FFFFFF#000000##FFFFFF
##4878281.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#766A2E
Tritanopia (blue-blind)
#477367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #487828;
/* rgb */ color: rgb(72, 120, 40);
/* oklch */ color: oklch(52.0% 0.123 135.0);
Tailwind
colors: {
  custom: {
    50: '#7f9f66',
    500: '#487828',
    950: '#000000',
  },
}
SCSS
$custom: #487828;
$custom-light: #7f9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#487828",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 96,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52036,
    "c": 0.12277,
    "h": 135
  },
  "luminance": 0.14964
}

Semantic roles & 50–950 ramp

primary
#487828
secondary
#8752AA
accent
#4EDAA2
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #487828

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

Preview Lab → · Contrast checker → · Palette generator →

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