#4B7817#4B7817

#4B7817 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.1% C 0.133 H 132.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#4B7817
RGBrgb(75, 120, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 47%)
CMYKcmyk(37.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.62, -31.37, 44.59)
CIE-LCHlch(45.62, 54.52, 125.12°)
OKLaboklab(52.07% -0.0888 0.0988)
OKLCHoklch(52.07% 0.133 132)
XYZxyz(9.7727, 14.9903, 3.1889)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7817 #441778
analogous
#787417 #4B7817 #1A7817
triadic
#4B7817 #174B78 #78174B
tetradic
#4B7817 #177874 #441778 #78171A
square
#4B7817 #177874 #441778 #78171A
split-complementary
#4B7817 #171A78 #741778
monochromatic
#101A05 #2B450D #4B7817 #6BAB21 #8BD832

Accessibility & contrast

On white

5.25
#4B7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#4B7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7817
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7817#FFFFFF#000000##FFFFFF
##4B78171.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#4C7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4b7817;
/* rgb */ color: rgb(75, 120, 23);
/* oklch */ color: oklch(52.1% 0.133 132.0);
Tailwind
colors: {
  custom: {
    50: '#829f5d',
    500: '#4b7817',
    950: '#000000',
  },
}
SCSS
$custom: #4b7817;
$custom-light: #829f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7817",
  "rgb": {
    "r": 75,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 87.835,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52069,
    "c": 0.13281,
    "h": 132
  },
  "luminance": 0.14991
}

Semantic roles & 50–950 ramp

primary
#4B7817
secondary
#713EAD
accent
#3DEB8E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4B7817

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

Preview Lab → · Contrast checker → · Palette generator →

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