#487228#487228

#487228 is a mid, moderate yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.114 H 133.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#487228
RGBrgb(72, 114, 40)
HSLhsl(94, 48%, 30%)
HSVhsv(94, 65%, 45%)
CMYKcmyk(36.8%, 0%, 64.9%, 55.3%)
CIE-LABlab(43.60, -28.40, 35.47)
CIE-LCHlch(43.60, 45.44, 128.68°)
OKLaboklab(50.42% -0.0791 0.0822)
OKLCHoklch(50.42% 0.114 133.9)
XYZxyz(9.0726, 13.5652, 4.1474)
Luminance0.1357 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487228 #522872
analogous
#6D7228 #487228 #28722D
triadic
#487228 #284872 #722848
tetradic
#487228 #286D72 #522872 #722D28
square
#487228 #286D72 #522872 #722D28
split-complementary
#487228 #2D2872 #72286D
monochromatic
#0F1708 #2B4518 #487228 #659F38 #83C252

Accessibility & contrast

On white

5.66
#487228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#487228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #487228
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487228#FFFFFF#000000##FFFFFF
##4872281.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76691F
Deuteranopia (green-blind)
#71662E
Tritanopia (blue-blind)
#486E62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #487228;
/* rgb */ color: rgb(72, 114, 40);
/* oklch */ color: oklch(50.4% 0.114 133.9);
Tailwind
colors: {
  custom: {
    50: '#7e9b65',
    500: '#487228',
    950: '#000000',
  },
}
SCSS
$custom: #487228;
$custom-light: #7e9b65;
$custom-dark: #000000;
JSON
{
  "hex": "#487228",
  "rgb": {
    "r": 72,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 94.054,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50419,
    "c": 0.11409,
    "h": 133.9
  },
  "luminance": 0.13566
}

Semantic roles & 50–950 ramp

primary
#487228
secondary
#8052A4
accent
#50D89D
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0E06
muted
#7C7E7A

Preview Lab

Preview with #487228

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

Preview Lab → · Contrast checker → · Palette generator →

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