#4B7B17#4B7B17

#4B7B17 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.9% C 0.137 H 132.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4B7B17
RGBrgb(75, 123, 23)
HSLhsl(89, 68%, 29%)
HSVhsv(89, 81%, 48%)
CMYKcmyk(39%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.61, -32.74, 45.52)
CIE-LCHlch(46.61, 56.07, 125.72°)
OKLaboklab(52.88% -0.0925 0.1007)
OKLCHoklch(52.88% 0.137 132.6)
XYZxyz(10.1391, 15.7232, 3.3111)
Luminance0.1572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7B17 #47177B
analogous
#7B7917 #4B7B17 #197B17
triadic
#4B7B17 #174B7B #7B174B
tetradic
#4B7B17 #177B79 #47177B #7B1719
square
#4B7B17 #177B79 #47177B #7B1719
split-complementary
#4B7B17 #17197B #79177B
monochromatic
#101A05 #2C470D #4B7B17 #6AAF21 #8AD933

Accessibility & contrast

On white

5.07
#4B7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#4B7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7B17
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7B17#FFFFFF#000000##FFFFFF
##4B7B171.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#4C7669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4b7b17;
/* rgb */ color: rgb(75, 123, 23);
/* oklch */ color: oklch(52.9% 0.137 132.6);
Tailwind
colors: {
  custom: {
    50: '#82a15d',
    500: '#4b7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4b7b17;
$custom-light: #82a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7b17",
  "rgb": {
    "r": 75,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 88.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52877,
    "c": 0.13674,
    "h": 132.6
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#4B7B17
secondary
#753EB0
accent
#3CEB90
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4B7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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