#4B7F17#4B7F17

#4B7F17 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.0% C 0.142 H 133.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#4B7F17
RGBrgb(75, 127, 23)
HSLhsl(90, 69%, 29%)
HSVhsv(90, 82%, 50%)
CMYKcmyk(40.9%, 0%, 81.9%, 50.2%)
CIE-LABlab(47.93, -34.53, 46.75)
CIE-LCHlch(47.93, 58.11, 126.45°)
OKLaboklab(53.95% -0.0973 0.1033)
OKLCHoklch(53.95% 0.142 133.3)
XYZxyz(10.6455, 16.7359, 3.4799)
Luminance0.1674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7F17 #4B177F
analogous
#7F7F17 #4B7F17 #177F17
triadic
#4B7F17 #174B7F #7F174B
tetradic
#4B7F17 #177F7F #4B177F #7F1717
square
#4B7F17 #177F7F #4B177F #7F1717
split-complementary
#4B7F17 #17177F #7F177F
monochromatic
#0F1A05 #2C4B0E #4B7F17 #6AB320 #88DB36

Accessibility & contrast

On white

4.83
#4B7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#4B7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7F17
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7F17#FFFFFF#000000##FFFFFF
##4B7F171.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#4B7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4b7f17;
/* rgb */ color: rgb(75, 127, 23);
/* oklch */ color: oklch(54.0% 0.142 133.3);
Tailwind
colors: {
  custom: {
    50: '#82a45e',
    500: '#4b7f17',
    950: '#000000',
  },
}
SCSS
$custom: #4b7f17;
$custom-light: #82a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7f17",
  "rgb": {
    "r": 75,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53954,
    "c": 0.1419,
    "h": 133.3
  },
  "luminance": 0.16736
}

Semantic roles & 50–950 ramp

primary
#4B7F17
secondary
#793EB4
accent
#3CEC94
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4B7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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