#4B7F12#4B7F12

#4B7F12 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 53.9% C 0.144 H 133.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4B7F12
RGBrgb(75, 127, 18)
HSLhsl(89, 75%, 28%)
HSVhsv(89, 86%, 50%)
CMYKcmyk(40.9%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.90, -34.77, 48.20)
CIE-LCHlch(47.90, 59.43, 125.81°)
OKLaboklab(53.93% -0.0983 0.1055)
OKLCHoklch(53.93% 0.144 133)
XYZxyz(10.6001, 16.7178, 3.2405)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7F12 #46127F
analogous
#7F7C12 #4B7F12 #147F12
triadic
#4B7F12 #124B7F #7F124B
tetradic
#4B7F12 #127F7C #46127F #7F1214
square
#4B7F12 #127F7C #46127F #7F1214
split-complementary
#4B7F12 #12147F #7C127F
monochromatic
#101B04 #2B490A #4B7F12 #6BB51A #8AE12B

Accessibility & contrast

On white

4.83
#4B7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4B7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7F12
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7F12#FFFFFF#000000##FFFFFF
##4B7F121.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b7f12;
/* rgb */ color: rgb(75, 127, 18);
/* oklch */ color: oklch(53.9% 0.144 133.0);
Tailwind
colors: {
  custom: {
    50: '#83a45c',
    500: '#4b7f12',
    950: '#000000',
  },
}
SCSS
$custom: #4b7f12;
$custom-light: #83a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7f12",
  "rgb": {
    "r": 75,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 88.624,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53928,
    "c": 0.14421,
    "h": 133
  },
  "luminance": 0.16718
}

Semantic roles & 50–950 ramp

primary
#4B7F12
secondary
#7438B5
accent
#36F290
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4B7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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