#4B8012#4B8012

#4B8012 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.2% C 0.145 H 133.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4B8012
RGBrgb(75, 128, 18)
HSLhsl(89, 75%, 29%)
HSVhsv(89, 86%, 50%)
CMYKcmyk(41.4%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.23, -35.21, 48.49)
CIE-LCHlch(48.23, 59.92, 125.98°)
OKLaboklab(54.2% -0.0994 0.1062)
OKLCHoklch(54.2% 0.145 133.1)
XYZxyz(10.7298, 16.9773, 3.2837)
Luminance0.1698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B8012 #471280
analogous
#807E12 #4B8012 #148012
triadic
#4B8012 #124B80 #80124B
tetradic
#4B8012 #12807E #471280 #801214
square
#4B8012 #12807E #471280 #801214
split-complementary
#4B8012 #121480 #7E1280
monochromatic
#101B04 #2C4A0A #4B8012 #6AB61A #8AE12B

Accessibility & contrast

On white

4.78
#4B8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#4B8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B8012
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B8012#FFFFFF#000000##FFFFFF
##4B80121.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7E7120
Tritanopia (blue-blind)
#4B7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4b8012;
/* rgb */ color: rgb(75, 128, 18);
/* oklch */ color: oklch(54.2% 0.145 133.1);
Tailwind
colors: {
  custom: {
    50: '#83a55c',
    500: '#4b8012',
    950: '#000000',
  },
}
SCSS
$custom: #4b8012;
$custom-light: #83a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b8012",
  "rgb": {
    "r": 75,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 88.909,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.14547,
    "h": 133.1
  },
  "luminance": 0.16978
}

Semantic roles & 50–950 ramp

primary
#4B8012
secondary
#7538B6
accent
#36F290
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4B8012

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

Preview Lab → · Contrast checker → · Palette generator →

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