#4D8F12#4D8F12

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

Color values

HEX#4D8F12
RGBrgb(77, 143, 18)
HSLhsl(92, 78%, 32%)
HSVhsv(92, 87%, 56%)
CMYKcmyk(46.2%, 0%, 87.4%, 43.9%)
CIE-LABlab(53.24, -40.88, 52.93)
CIE-LCHlch(53.24, 66.88, 127.68°)
OKLaboklab(58.33% -0.1148 0.1155)
OKLCHoklch(58.33% 0.163 134.8)
XYZxyz(12.9919, 21.2656, 3.9922)
Luminance0.2127 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8F12 #54128F
analogous
#8C8F12 #4D8F12 #128F16
triadic
#4D8F12 #124D8F #8F124D
tetradic
#4D8F12 #128C8F #54128F #8F1612
square
#4D8F12 #128C8F #54128F #8F1612
split-complementary
#4D8F12 #16128F #8F128C
monochromatic
#122204 #30590B #4D8F12 #6AC519 #89E636

Accessibility & contrast

On white

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

On black

5.25
#4D8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8F12
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8F12#FFFFFF#000000##000000
##4D8F121.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d8f12;
/* rgb */ color: rgb(77, 143, 18);
/* oklch */ color: oklch(58.3% 0.163 134.8);
Tailwind
colors: {
  custom: {
    50: '#86b05f',
    500: '#4d8f12',
    950: '#000000',
  },
}
SCSS
$custom: #4d8f12;
$custom-light: #86b05f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8f12",
  "rgb": {
    "r": 77,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 91.68,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58331,
    "c": 0.16285,
    "h": 134.8
  },
  "luminance": 0.21266
}

Semantic roles & 50–950 ramp

primary
#4D8F12
secondary
#823AC3
accent
#34F499
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4D8F12

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

Preview Lab → · Contrast checker → · Palette generator →

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