#48871F#48871F

#48871F is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.0% C 0.149 H 136.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#48871F
RGBrgb(72, 135, 31)
HSLhsl(96, 63%, 33%)
HSVhsv(96, 77%, 53%)
CMYKcmyk(46.7%, 0%, 77%, 47.1%)
CIE-LABlab(50.46, -38.56, 46.39)
CIE-LCHlch(50.46, 60.32, 129.73°)
OKLaboklab(56% -0.1074 0.1039)
OKLCHoklch(56% 0.149 136)
XYZxyz(11.5835, 18.8039, 4.3152)
Luminance0.1880 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48871F #5E1F87
analogous
#7C871F #48871F #1F872A
triadic
#48871F #1F4887 #871F48
tetradic
#48871F #1F7C87 #5E1F87 #872A1F
square
#48871F #1F7C87 #5E1F87 #872A1F
split-complementary
#48871F #2A1F87 #871F7C
monochromatic
#132308 #2D5514 #48871F #63B92A #82D64B

Accessibility & contrast

On white

4.41
#48871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#48871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #48871F
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48871F#FFFFFF#000000##000000
##48871F1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B08
Deuteranopia (green-blind)
#84762A
Tritanopia (blue-blind)
#458273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #48871f;
/* rgb */ color: rgb(72, 135, 31);
/* oklch */ color: oklch(56.0% 0.149 136.0);
Tailwind
colors: {
  custom: {
    50: '#81aa63',
    500: '#48871f',
    950: '#000000',
  },
}
SCSS
$custom: #48871f;
$custom-light: #81aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#48871f",
  "rgb": {
    "r": 72,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 96.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56004,
    "c": 0.14942,
    "h": 136
  },
  "luminance": 0.18805
}

Semantic roles & 50–950 ramp

primary
#48871F
secondary
#8D4AB8
accent
#42E6A5
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #48871F

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

Preview Lab → · Contrast checker → · Palette generator →

#48871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva