#4B7212#4B7212

#4B7212 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.128 H 130.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#4B7212
RGBrgb(75, 114, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 84%, 45%)
CMYKcmyk(34.2%, 0%, 84.2%, 55.3%)
CIE-LABlab(43.62, -28.83, 44.34)
CIE-LCHlch(43.62, 52.89, 123.03°)
OKLaboklab(50.42% -0.0823 0.0974)
OKLCHoklch(50.42% 0.128 130.2)
XYZxyz(9.0281, 13.5738, 2.7165)
Luminance0.1357 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7212 #391272
analogous
#726912 #4B7212 #1B7212
triadic
#4B7212 #124B72 #72124B
tetradic
#4B7212 #127269 #391272 #72121B
square
#4B7212 #127269 #391272 #72121B
split-complementary
#4B7212 #121B72 #691272
monochromatic
#111A04 #283D0A #4B7212 #6EA71A #91DC23

Accessibility & contrast

On white

5.65
#4B7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#4B7212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7212
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7212#FFFFFF#000000##FFFFFF
##4B72121.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#72661D
Tritanopia (blue-blind)
#4D6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4b7212;
/* rgb */ color: rgb(75, 114, 18);
/* oklch */ color: oklch(50.4% 0.128 130.2);
Tailwind
colors: {
  custom: {
    50: '#819b5a',
    500: '#4b7212',
    950: '#000000',
  },
}
SCSS
$custom: #4b7212;
$custom-light: #819b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7212",
  "rgb": {
    "r": 75,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 84.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50424,
    "c": 0.12751,
    "h": 130.2
  },
  "luminance": 0.13574
}

Semantic roles & 50–950 ramp

primary
#4B7212
secondary
#6537A9
accent
#38EF83
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7212

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

Preview Lab → · Contrast checker → · Palette generator →

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