#48781F#48781F

#48781F is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.0% C 0.130 H 133.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#48781F
RGBrgb(72, 120, 31)
HSLhsl(92, 59%, 30%)
HSVhsv(92, 74%, 47%)
CMYKcmyk(40%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.51, -31.98, 41.47)
CIE-LCHlch(45.51, 52.37, 127.64°)
OKLaboklab(51.95% -0.0896 0.0936)
OKLCHoklch(51.95% 0.13 133.8)
XYZxyz(9.6361, 14.9091, 3.6661)
Luminance0.1491 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48781F #4F1F78
analogous
#74781F #48781F #1F7823
triadic
#48781F #1F4878 #781F48
tetradic
#48781F #1F7478 #4F1F78 #78231F
square
#48781F #1F7478 #4F1F78 #78231F
split-complementary
#48781F #231F78 #781F74
monochromatic
#0F1806 #2B4712 #48781F #65A92C #83CE43

Accessibility & contrast

On white

5.27
#48781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#48781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #48781F
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48781F#FFFFFF#000000##FFFFFF
##48781F1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#487367
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #48781f;
/* rgb */ color: rgb(72, 120, 31);
/* oklch */ color: oklch(52.0% 0.130 133.8);
Tailwind
colors: {
  custom: {
    50: '#7f9f61',
    500: '#48781f',
    950: '#000000',
  },
}
SCSS
$custom: #48781f;
$custom-light: #7f9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#48781f",
  "rgb": {
    "r": 72,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 92.36,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51951,
    "c": 0.12958,
    "h": 133.8
  },
  "luminance": 0.1491
}

Semantic roles & 50–950 ramp

primary
#48781F
secondary
#7D47AB
accent
#46E29A
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #48781F

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

Preview Lab → · Contrast checker → · Palette generator →

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