#4B7412#4B7412

#4B7412 is a mid, vivid yellow-green. Relative luminance 0.140; OKLCH L 51.0% C 0.130 H 130.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#4B7412
RGBrgb(75, 116, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 84%, 45%)
CMYKcmyk(35.3%, 0%, 84.5%, 54.5%)
CIE-LABlab(44.28, -29.77, 44.94)
CIE-LCHlch(44.28, 53.91, 123.52°)
OKLaboklab(50.96% -0.0848 0.0987)
OKLCHoklch(50.96% 0.13 130.7)
XYZxyz(9.2562, 14.0300, 2.7925)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7412 #3B1274
analogous
#746C12 #4B7412 #1A7412
triadic
#4B7412 #124B74 #74124B
tetradic
#4B7412 #12746C #3B1274 #74121A
square
#4B7412 #12746C #3B1274 #74121A
split-complementary
#4B7412 #121A74 #6C1274
monochromatic
#111A04 #293F0A #4B7412 #6DA91A #8FDD23

Accessibility & contrast

On white

5.52
#4B7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#4B7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7412
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7412#FFFFFF#000000##FFFFFF
##4B74121.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#4D6F62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4b7412;
/* rgb */ color: rgb(75, 116, 18);
/* oklch */ color: oklch(51.0% 0.130 130.7);
Tailwind
colors: {
  custom: {
    50: '#829c5a',
    500: '#4b7412',
    950: '#000000',
  },
}
SCSS
$custom: #4b7412;
$custom-light: #829c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7412",
  "rgb": {
    "r": 75,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 85.102,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.13013,
    "h": 130.7
  },
  "luminance": 0.1403
}

Semantic roles & 50–950 ramp

primary
#4B7412
secondary
#6737AB
accent
#38F085
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7412

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

Preview Lab → · Contrast checker → · Palette generator →

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