#488F12#488F12

#488F12 is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.1% C 0.165 H 135.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#488F12
RGBrgb(72, 143, 18)
HSLhsl(94, 78%, 32%)
HSVhsv(94, 87%, 56%)
CMYKcmyk(49.7%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.02, -42.53, 52.66)
CIE-LCHlch(53.02, 67.69, 128.93°)
OKLaboklab(58.09% -0.1189 0.1151)
OKLCHoklch(58.09% 0.165 135.9)
XYZxyz(12.6038, 21.0655, 3.9740)
Luminance0.2107 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#488F12 #59128F
analogous
#878F12 #488F12 #128F1B
triadic
#488F12 #12488F #8F1248
tetradic
#488F12 #12878F #59128F #8F1B12
square
#488F12 #12878F #59128F #8F1B12
split-complementary
#488F12 #1B128F #8F1287
monochromatic
#112204 #2D590B #488F12 #63C519 #82E636

Accessibility & contrast

On white

4.03
#488F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#488F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #488F12
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##488F12#FFFFFF#000000##000000
##488F121.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#458979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #488f12;
/* rgb */ color: rgb(72, 143, 18);
/* oklch */ color: oklch(58.1% 0.165 135.9);
Tailwind
colors: {
  custom: {
    50: '#83b05f',
    500: '#488f12',
    950: '#000000',
  },
}
SCSS
$custom: #488f12;
$custom-light: #83b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#488f12",
  "rgb": {
    "r": 72,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 94.08,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58092,
    "c": 0.16543,
    "h": 135.9
  },
  "luminance": 0.21066
}

Semantic roles & 50–950 ramp

primary
#488F12
secondary
#883AC3
accent
#34F4A1
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #488F12

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

Preview Lab → · Contrast checker → · Palette generator →

#488F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva