#487822#487822

#487822 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.0% C 0.127 H 134.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#487822
RGBrgb(72, 120, 34)
HSLhsl(93, 56%, 30%)
HSVhsv(93, 72%, 47%)
CMYKcmyk(40%, 0%, 71.7%, 52.9%)
CIE-LABlab(45.53, -31.75, 40.25)
CIE-LCHlch(45.53, 51.27, 128.26°)
OKLaboklab(51.98% -0.0888 0.0915)
OKLCHoklch(51.98% 0.127 134.1)
XYZxyz(9.6775, 14.9257, 3.8841)
Luminance0.1493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#487822 #522278
analogous
#737822 #487822 #227827
triadic
#487822 #224878 #782248
tetradic
#487822 #227378 #522278 #782722
square
#487822 #227378 #522278 #782722
split-complementary
#487822 #272278 #782273
monochromatic
#0F1907 #2B4814 #487822 #65A830 #83CB49

Accessibility & contrast

On white

5.27
#487822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #487822
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##487822#FFFFFF#000000##FFFFFF
##4878221.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#487367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #487822;
/* rgb */ color: rgb(72, 120, 34);
/* oklch */ color: oklch(52.0% 0.127 134.1);
Tailwind
colors: {
  custom: {
    50: '#7f9f62',
    500: '#487822',
    950: '#000000',
  },
}
SCSS
$custom: #487822;
$custom-light: #7f9f62;
$custom-dark: #000000;
JSON
{
  "hex": "#487822",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 93.488,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51977,
    "c": 0.12746,
    "h": 134.1
  },
  "luminance": 0.14926
}

Semantic roles & 50–950 ramp

primary
#487822
secondary
#804BAB
accent
#49DF9D
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0A0E05
muted
#7C7E7A

Preview Lab

Preview with #487822

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

Preview Lab → · Contrast checker → · Palette generator →

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