#4C8C1F#4C8C1F

#4C8C1F is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.5% C 0.154 H 135.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4C8C1F
RGBrgb(76, 140, 31)
HSLhsl(95, 64%, 34%)
HSVhsv(95, 78%, 55%)
CMYKcmyk(45.7%, 0%, 77.9%, 45.1%)
CIE-LABlab(52.28, -39.31, 48.22)
CIE-LCHlch(52.28, 62.22, 129.19°)
OKLaboklab(57.55% -0.1097 0.1076)
OKLCHoklch(57.55% 0.154 135.6)
XYZxyz(12.6056, 20.3908, 4.5677)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8C1F #5F1F8C
analogous
#828C1F #4C8C1F #1F8C28
triadic
#4C8C1F #1F4C8C #8C1F4C
tetradic
#4C8C1F #1F828C #5F1F8C #8C281F
square
#4C8C1F #1F828C #5F1F8C #8C281F
split-complementary
#4C8C1F #281F8C #8C1F82
monochromatic
#162809 #315A14 #4C8C1F #67BE2A #87D84E

Accessibility & contrast

On white

4.14
#4C8C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#4C8C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8C1F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8C1F#FFFFFF#000000##000000
##4C8C1F1.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918005
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#4A8777
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4c8c1f;
/* rgb */ color: rgb(76, 140, 31);
/* oklch */ color: oklch(57.5% 0.154 135.6);
Tailwind
colors: {
  custom: {
    50: '#84ae63',
    500: '#4c8c1f',
    950: '#000000',
  },
}
SCSS
$custom: #4c8c1f;
$custom-light: #84ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8c1f",
  "rgb": {
    "r": 76,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 95.229,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57548,
    "c": 0.1537,
    "h": 135.6
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C8C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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