#4C8F12#4C8F12

#4C8F12 is a mid, vivid yellow-green. Relative luminance 0.212; OKLCH L 58.3% C 0.163 H 135.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#4C8F12
RGBrgb(76, 143, 18)
HSLhsl(92, 78%, 32%)
HSVhsv(92, 87%, 56%)
CMYKcmyk(46.9%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.19, -41.22, 52.88)
CIE-LCHlch(53.19, 67.05, 127.94°)
OKLaboklab(58.28% -0.1156 0.1154)
OKLCHoklch(58.28% 0.163 135)
XYZxyz(12.9118, 21.2243, 3.9885)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8F12 #55128F
analogous
#8B8F12 #4C8F12 #128F17
triadic
#4C8F12 #124C8F #8F124C
tetradic
#4C8F12 #128B8F #55128F #8F1712
square
#4C8F12 #128B8F #55128F #8F1712
split-complementary
#4C8F12 #17128F #8F128B
monochromatic
#122204 #2F590B #4C8F12 #69C519 #87E636

Accessibility & contrast

On white

4.00
#4C8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#4C8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8F12
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8F12#FFFFFF#000000##000000
##4C8F121.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958200
Deuteranopia (green-blind)
#8C7D23
Tritanopia (blue-blind)
#4A8979
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #4c8f12;
/* rgb */ color: rgb(76, 143, 18);
/* oklch */ color: oklch(58.3% 0.163 135.0);
Tailwind
colors: {
  custom: {
    50: '#85b05f',
    500: '#4c8f12',
    950: '#000000',
  },
}
SCSS
$custom: #4c8f12;
$custom-light: #85b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8f12",
  "rgb": {
    "r": 76,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 92.16,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58282,
    "c": 0.16338,
    "h": 135
  },
  "luminance": 0.21225
}

Semantic roles & 50–950 ramp

primary
#4C8F12
secondary
#833AC3
accent
#34F49B
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4C8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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