#48771B#48771B

#48771B is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.6% C 0.131 H 133.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#48771B
RGBrgb(72, 119, 27)
HSLhsl(91, 63%, 29%)
HSVhsv(91, 77%, 47%)
CMYKcmyk(39.5%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.15, -31.81, 42.67)
CIE-LCHlch(45.15, 53.22, 126.71°)
OKLaboklab(51.65% -0.0895 0.0954)
OKLCHoklch(51.65% 0.131 133.2)
XYZxyz(9.4670, 14.6501, 3.3656)
Luminance0.1465 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48771B #4A1B77
analogous
#76771B #48771B #1B771C
triadic
#48771B #1B4877 #771B48
tetradic
#48771B #1B7677 #4A1B77 #771C1B
square
#48771B #1B7677 #4A1B77 #771C1B
split-complementary
#48771B #1C1B77 #771B76
monochromatic
#0F1906 #2A4510 #48771B #66A926 #85D23A

Accessibility & contrast

On white

5.34
#48771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#48771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #48771B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48771B#FFFFFF#000000##FFFFFF
##48771B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D08
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#487265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #48771b;
/* rgb */ color: rgb(72, 119, 27);
/* oklch */ color: oklch(51.6% 0.131 133.2);
Tailwind
colors: {
  custom: {
    50: '#7f9e5f',
    500: '#48771b',
    950: '#000000',
  },
}
SCSS
$custom: #48771b;
$custom-light: #7f9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#48771b",
  "rgb": {
    "r": 72,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 90.652,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51649,
    "c": 0.13083,
    "h": 133.2
  },
  "luminance": 0.14651
}

Semantic roles & 50–950 ramp

primary
#48771B
secondary
#7842AB
accent
#42E696
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #48771B

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

Preview Lab → · Contrast checker → · Palette generator →

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