#4B7417#4B7417

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

Color values

HEX#4B7417
RGBrgb(75, 116, 23)
HSLhsl(86, 67%, 27%)
HSVhsv(86, 80%, 45%)
CMYKcmyk(35.3%, 0%, 80.2%, 54.5%)
CIE-LABlab(44.30, -29.51, 43.35)
CIE-LCHlch(44.30, 52.44, 124.24°)
OKLaboklab(50.99% -0.0838 0.0962)
OKLCHoklch(50.99% 0.128 131.1)
XYZxyz(9.3016, 14.0482, 3.0319)
Luminance0.1405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7417 #401774
analogous
#746F17 #4B7417 #1C7417
triadic
#4B7417 #174B74 #74174B
tetradic
#4B7417 #17746F #401774 #74171C
square
#4B7417 #17746F #401774 #74171C
split-complementary
#4B7417 #171C74 #6F1774
monochromatic
#111A05 #2A410D #4B7417 #6CA721 #8DD630

Accessibility & contrast

On white

5.51
#4B7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4B7417
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7417#FFFFFF#000000##FFFFFF
##4B74171.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B01
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#4D6F63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #4b7417;
/* rgb */ color: rgb(75, 116, 23);
/* oklch */ color: oklch(51.0% 0.128 131.1);
Tailwind
colors: {
  custom: {
    50: '#819c5c',
    500: '#4b7417',
    950: '#000000',
  },
}
SCSS
$custom: #4b7417;
$custom-light: #819c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7417",
  "rgb": {
    "r": 75,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 86.452,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50992,
    "c": 0.12752,
    "h": 131.1
  },
  "luminance": 0.14048
}

Semantic roles & 50–950 ramp

primary
#4B7417
secondary
#6D3DA9
accent
#3EEA8A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7417

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

Preview Lab → · Contrast checker → · Palette generator →

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