#4B7917#4B7917

#4B7917 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.3% C 0.134 H 132.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#4B7917
RGBrgb(75, 121, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 47%)
CMYKcmyk(38%, 0%, 81%, 52.5%)
CIE-LABlab(45.95, -31.82, 44.90)
CIE-LCHlch(45.95, 55.04, 125.33°)
OKLaboklab(52.34% -0.09 0.0994)
OKLCHoklch(52.34% 0.134 132.2)
XYZxyz(9.8936, 15.2320, 3.2292)
Luminance0.1523 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7917 #451779
analogous
#797617 #4B7917 #1A7917
triadic
#4B7917 #174B79 #79174B
tetradic
#4B7917 #177976 #451779 #79171A
square
#4B7917 #177976 #451779 #79171A
split-complementary
#4B7917 #171A79 #761779
monochromatic
#101A05 #2B460D #4B7917 #6BAC21 #8AD832

Accessibility & contrast

On white

5.19
#4B7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4B7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7917
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7917#FFFFFF#000000##FFFFFF
##4B79171.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#4C7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4b7917;
/* rgb */ color: rgb(75, 121, 23);
/* oklch */ color: oklch(52.3% 0.134 132.2);
Tailwind
colors: {
  custom: {
    50: '#82a05d',
    500: '#4b7917',
    950: '#000000',
  },
}
SCSS
$custom: #4b7917;
$custom-light: #82a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7917",
  "rgb": {
    "r": 75,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 88.163,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.13412,
    "h": 132.2
  },
  "luminance": 0.15232
}

Semantic roles & 50–950 ramp

primary
#4B7917
secondary
#723EAE
accent
#3DEB8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B7917

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

Preview Lab → · Contrast checker → · Palette generator →

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