#488012#488012

#488012 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.0% C 0.147 H 134.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#488012
RGBrgb(72, 128, 18)
HSLhsl(91, 75%, 29%)
HSVhsv(91, 86%, 50%)
CMYKcmyk(43.8%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.08, -36.30, 48.30)
CIE-LCHlch(48.08, 60.42, 126.92°)
OKLaboklab(54.03% -0.1022 0.1058)
OKLCHoklch(54.03% 0.147 134)
XYZxyz(10.5007, 16.8592, 3.2730)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#488012 #4A1280
analogous
#7F8012 #488012 #128013
triadic
#488012 #124880 #801248
tetradic
#488012 #127F80 #4A1280 #801312
square
#488012 #127F80 #4A1280 #801312
split-complementary
#488012 #131280 #80127F
monochromatic
#0F1B04 #2A4A0A #488012 #66B61A #85E12B

Accessibility & contrast

On white

4.80
#488012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#488012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #488012
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##488012#FFFFFF#000000##FFFFFF
##4880121.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#477B6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #488012;
/* rgb */ color: rgb(72, 128, 18);
/* oklch */ color: oklch(54.0% 0.147 134.0);
Tailwind
colors: {
  custom: {
    50: '#81a55c',
    500: '#488012',
    950: '#000000',
  },
}
SCSS
$custom: #488012;
$custom-light: #81a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#488012",
  "rgb": {
    "r": 72,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 90.545,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54034,
    "c": 0.1471,
    "h": 134
  },
  "luminance": 0.1686
}

Semantic roles & 50–950 ramp

primary
#488012
secondary
#7838B6
accent
#36F296
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #488012

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

Preview Lab → · Contrast checker → · Palette generator →

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