#4B7312#4B7312

#4B7312 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.7% C 0.129 H 130.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4B7312
RGBrgb(75, 115, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 84%, 45%)
CMYKcmyk(34.8%, 0%, 84.3%, 54.9%)
CIE-LABlab(43.95, -29.30, 44.64)
CIE-LCHlch(43.95, 53.40, 123.28°)
OKLaboklab(50.69% -0.0836 0.098)
OKLCHoklch(50.69% 0.129 130.4)
XYZxyz(9.1415, 13.8007, 2.7543)
Luminance0.1380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7312 #3A1273
analogous
#736A12 #4B7312 #1B7312
triadic
#4B7312 #124B73 #73124B
tetradic
#4B7312 #12736A #3A1273 #73121B
square
#4B7312 #12736A #3A1273 #73121B
split-complementary
#4B7312 #121B73 #6A1273
monochromatic
#111A04 #283E0A #4B7312 #6EA81A #90DD23

Accessibility & contrast

On white

5.58
#4B7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4B7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7312
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7312#FFFFFF#000000##FFFFFF
##4B73121.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#4D6E61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4b7312;
/* rgb */ color: rgb(75, 115, 18);
/* oklch */ color: oklch(50.7% 0.129 130.4);
Tailwind
colors: {
  custom: {
    50: '#819b5a',
    500: '#4b7312',
    950: '#000000',
  },
}
SCSS
$custom: #4b7312;
$custom-light: #819b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7312",
  "rgb": {
    "r": 75,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 84.742,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50694,
    "c": 0.12882,
    "h": 130.4
  },
  "luminance": 0.13801
}

Semantic roles & 50–950 ramp

primary
#4B7312
secondary
#6637AA
accent
#38F084
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7312

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

Preview Lab → · Contrast checker → · Palette generator →

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