#4B7512#4B7512

#4B7512 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.2% C 0.131 H 130.9°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#4B7512
RGBrgb(75, 117, 18)
HSLhsl(85, 73%, 26%)
HSVhsv(85, 85%, 46%)
CMYKcmyk(35.9%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.61, -30.24, 45.24)
CIE-LCHlch(44.61, 54.42, 123.76°)
OKLaboklab(51.23% -0.0861 0.0993)
OKLCHoklch(51.23% 0.131 130.9)
XYZxyz(9.3721, 14.2618, 2.8311)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7512 #3C1275
analogous
#756E12 #4B7512 #197512
triadic
#4B7512 #124B75 #75124B
tetradic
#4B7512 #12756E #3C1275 #751219
square
#4B7512 #12756E #3C1275 #751219
split-complementary
#4B7512 #121975 #6E1275
monochromatic
#111B04 #29400A #4B7512 #6DAA1A #8FDD24

Accessibility & contrast

On white

5.45
#4B7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#4B7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7512
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7512#FFFFFF#000000##FFFFFF
##4B75121.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#75681E
Tritanopia (blue-blind)
#4D7063
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4b7512;
/* rgb */ color: rgb(75, 117, 18);
/* oklch */ color: oklch(51.2% 0.131 130.9);
Tailwind
colors: {
  custom: {
    50: '#829d5a',
    500: '#4b7512',
    950: '#000000',
  },
}
SCSS
$custom: #4b7512;
$custom-light: #829d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7512",
  "rgb": {
    "r": 75,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 85.455,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51232,
    "c": 0.13143,
    "h": 130.9
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#4B7512
secondary
#6937AC
accent
#38F086
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7512

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

Preview Lab → · Contrast checker → · Palette generator →

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