#4C8B1F#4C8B1F

#4C8B1F is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.3% C 0.152 H 135.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4C8B1F
RGBrgb(76, 139, 31)
HSLhsl(95, 64%, 33%)
HSVhsv(95, 78%, 55%)
CMYKcmyk(45.3%, 0%, 77.7%, 45.5%)
CIE-LABlab(51.95, -38.89, 47.91)
CIE-LCHlch(51.95, 61.71, 129.07°)
OKLaboklab(57.28% -0.1086 0.107)
OKLCHoklch(57.28% 0.152 135.4)
XYZxyz(12.4601, 20.0999, 4.5192)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8B1F #5E1F8B
analogous
#828B1F #4C8B1F #1F8B28
triadic
#4C8B1F #1F4C8B #8B1F4C
tetradic
#4C8B1F #1F828B #5E1F8B #8B281F
square
#4C8B1F #1F828B #5E1F8B #8B281F
split-complementary
#4C8B1F #281F8B #8B1F82
monochromatic
#152709 #315914 #4C8B1F #67BD2A #87D74D

Accessibility & contrast

On white

4.18
#4C8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#4C8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8B1F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8B1F#FFFFFF#000000##000000
##4C8B1F1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4A8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4c8b1f;
/* rgb */ color: rgb(76, 139, 31);
/* oklch */ color: oklch(57.3% 0.152 135.4);
Tailwind
colors: {
  custom: {
    50: '#84ad63',
    500: '#4c8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8b1f;
$custom-light: #84ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8b1f",
  "rgb": {
    "r": 76,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 95,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5728,
    "c": 0.15242,
    "h": 135.4
  },
  "luminance": 0.20101
}

Semantic roles & 50–950 ramp

primary
#4C8B1F
secondary
#8C4CBA
accent
#41E7A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#4C8B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva