#4B7017#4B7017

#4B7017 is a mid, vivid yellow-green. Relative luminance 0.131; OKLCH L 49.9% C 0.122 H 130.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#4B7017
RGBrgb(75, 112, 23)
HSLhsl(85, 66%, 26%)
HSVhsv(85, 79%, 44%)
CMYKcmyk(33%, 0%, 79.5%, 56.1%)
CIE-LABlab(42.98, -27.61, 42.09)
CIE-LCHlch(42.98, 50.34, 123.26°)
OKLaboklab(49.92% -0.0786 0.0935)
OKLCHoklch(49.92% 0.122 130.1)
XYZxyz(8.8504, 13.1458, 2.8815)
Luminance0.1315 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7017 #3C1770
analogous
#706917 #4B7017 #1F7017
triadic
#4B7017 #174B70 #70174B
tetradic
#4B7017 #177069 #3C1770 #70171F
square
#4B7017 #177069 #3C1770 #70171F
split-complementary
#4B7017 #171F70 #691770
monochromatic
#111905 #293D0D #4B7017 #6DA321 #8FD42D

Accessibility & contrast

On white

5.79
#4B7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#4B7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7017
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7017#FFFFFF#000000##FFFFFF
##4B70171.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#706520
Tritanopia (blue-blind)
#4D6B5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #4b7017;
/* rgb */ color: rgb(75, 112, 23);
/* oklch */ color: oklch(49.9% 0.122 130.1);
Tailwind
colors: {
  custom: {
    50: '#81995c',
    500: '#4b7017',
    950: '#000000',
  },
}
SCSS
$custom: #4b7017;
$custom-light: #81995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7017",
  "rgb": {
    "r": 75,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 84.944,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49916,
    "c": 0.12217,
    "h": 130.1
  },
  "luminance": 0.13146
}

Semantic roles & 50–950 ramp

primary
#4B7017
secondary
#693DA6
accent
#3FE986
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7017

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

Preview Lab → · Contrast checker → · Palette generator →

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