#4B7D17#4B7D17

#4B7D17 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.4% C 0.139 H 132.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#4B7D17
RGBrgb(75, 125, 23)
HSLhsl(89, 69%, 29%)
HSVhsv(89, 82%, 49%)
CMYKcmyk(40%, 0%, 81.6%, 51%)
CIE-LABlab(47.27, -33.63, 46.14)
CIE-LCHlch(47.27, 57.09, 126.09°)
OKLaboklab(53.42% -0.0949 0.102)
OKLCHoklch(53.42% 0.139 132.9)
XYZxyz(10.3898, 16.2245, 3.3946)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7D17 #49177D
analogous
#7D7C17 #4B7D17 #187D17
triadic
#4B7D17 #174B7D #7D174B
tetradic
#4B7D17 #177D7C #49177D #7D1718
square
#4B7D17 #177D7C #49177D #7D1718
split-complementary
#4B7D17 #17187D #7C177D
monochromatic
#101A05 #2C490D #4B7D17 #6AB121 #89DA35

Accessibility & contrast

On white

4.95
#4B7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#4B7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7D17
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7D17#FFFFFF#000000##FFFFFF
##4B7D171.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#4B786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4b7d17;
/* rgb */ color: rgb(75, 125, 23);
/* oklch */ color: oklch(53.4% 0.139 132.9);
Tailwind
colors: {
  custom: {
    50: '#82a35e',
    500: '#4b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #4b7d17;
$custom-light: #82a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7d17",
  "rgb": {
    "r": 75,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 89.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53416,
    "c": 0.13933,
    "h": 132.9
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#4B7D17
secondary
#773EB2
accent
#3CEC92
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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