#4C8B23#4C8B23

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

Color values

HEX#4C8B23
RGBrgb(76, 139, 35)
HSLhsl(96, 60%, 34%)
HSVhsv(96, 75%, 55%)
CMYKcmyk(45.3%, 0%, 74.8%, 45.5%)
CIE-LABlab(51.98, -38.62, 46.48)
CIE-LCHlch(51.98, 60.43, 129.72°)
OKLaboklab(57.31% -0.1076 0.1046)
OKLCHoklch(57.31% 0.15 135.8)
XYZxyz(12.5162, 20.1223, 4.8143)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8B23 #62238B
analogous
#808B23 #4C8B23 #238B2E
triadic
#4C8B23 #234C8B #8B234C
tetradic
#4C8B23 #23808B #62238B #8B2E23
square
#4C8B23 #23808B #62238B #8B2E23
split-complementary
#4C8B23 #2E238B #8B2380
monochromatic
#17290A #315A17 #4C8B23 #67BC2F #87D454

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C8B23#FFFFFF#000000##000000
##4C8B231.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)
#907F10
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#4A8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4c8b23;
/* rgb */ color: rgb(76, 139, 35);
/* oklch */ color: oklch(57.3% 0.150 135.8);
Tailwind
colors: {
  custom: {
    50: '#84ad65',
    500: '#4c8b23',
    950: '#000000',
  },
}
SCSS
$custom: #4c8b23;
$custom-light: #84ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8b23",
  "rgb": {
    "r": 76,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 96.346,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57309,
    "c": 0.15003,
    "h": 135.8
  },
  "luminance": 0.20123
}

Semantic roles & 50–950 ramp

primary
#4C8B23
secondary
#9052B8
accent
#45E3A5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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