#4B8E12#4B8E12

#4B8E12 is a mid, vivid yellow-green. Relative luminance 0.209; OKLCH L 58.0% C 0.163 H 135.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4B8E12
RGBrgb(75, 142, 18)
HSLhsl(92, 78%, 31%)
HSVhsv(92, 87%, 56%)
CMYKcmyk(47.2%, 0%, 87.3%, 44.3%)
CIE-LABlab(52.82, -41.14, 52.54)
CIE-LCHlch(52.82, 66.73, 128.07°)
OKLaboklab(57.97% -0.1153 0.1147)
OKLCHoklch(57.97% 0.163 135.1)
XYZxyz(12.6835, 20.8847, 3.9350)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B8E12 #55128E
analogous
#898E12 #4B8E12 #128E17
triadic
#4B8E12 #124B8E #8E124B
tetradic
#4B8E12 #12898E #55128E #8E1712
square
#4B8E12 #12898E #55128E #8E1712
split-complementary
#4B8E12 #17128E #8E1289
monochromatic
#122104 #2E580B #4B8E12 #68C419 #86E535

Accessibility & contrast

On white

4.06
#4B8E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#4B8E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4B8E12
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B8E12#FFFFFF#000000##000000
##4B8E121.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948100
Deuteranopia (green-blind)
#8B7C23
Tritanopia (blue-blind)
#498878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4b8e12;
/* rgb */ color: rgb(75, 142, 18);
/* oklch */ color: oklch(58.0% 0.163 135.1);
Tailwind
colors: {
  custom: {
    50: '#84af5e',
    500: '#4b8e12',
    950: '#000000',
  },
}
SCSS
$custom: #4b8e12;
$custom-light: #84af5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b8e12",
  "rgb": {
    "r": 75,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 92.419,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57965,
    "c": 0.16269,
    "h": 135.1
  },
  "luminance": 0.20886
}

Semantic roles & 50–950 ramp

primary
#4B8E12
secondary
#833AC2
accent
#34F49C
background
#F8FAF5
surface
#F0F5EA
border
#CBCFC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4B8E12

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

Preview Lab → · Contrast checker → · Palette generator →

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