#48871B#48871B

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

Color values

HEX#48871B
RGBrgb(72, 135, 27)
HSLhsl(95, 67%, 32%)
HSVhsv(95, 80%, 53%)
CMYKcmyk(46.7%, 0%, 80%, 47.1%)
CIE-LABlab(50.43, -38.81, 47.75)
CIE-LCHlch(50.43, 61.53, 129.10°)
OKLaboklab(55.98% -0.1084 0.1061)
OKLCHoklch(55.98% 0.152 135.6)
XYZxyz(11.5340, 18.7841, 4.0546)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48871B #5A1B87
analogous
#7E871B #48871B #1B8724
triadic
#48871B #1B4887 #871B48
tetradic
#48871B #1B7E87 #5A1B87 #87241B
square
#48871B #1B7E87 #5A1B87 #87241B
split-complementary
#48871B #241B87 #871B7E
monochromatic
#122107 #2D5411 #48871B #63BA25 #82D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##48871B#FFFFFF#000000##000000
##48871B1.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)
#8C7B00
Deuteranopia (green-blind)
#847627
Tritanopia (blue-blind)
#468273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #48871b;
/* rgb */ color: rgb(72, 135, 27);
/* oklch */ color: oklch(56.0% 0.152 135.6);
Tailwind
colors: {
  custom: {
    50: '#81aa61',
    500: '#48871b',
    950: '#000000',
  },
}
SCSS
$custom: #48871b;
$custom-light: #81aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#48871b",
  "rgb": {
    "r": 72,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 95,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55978,
    "c": 0.15165,
    "h": 135.6
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#48871B
secondary
#8944BA
accent
#3EEAA2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #48871B

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

Preview Lab → · Contrast checker → · Palette generator →

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