#4B7A17#4B7A17

#4B7A17 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.6% C 0.135 H 132.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#4B7A17
RGBrgb(75, 122, 23)
HSLhsl(88, 68%, 28%)
HSVhsv(88, 81%, 48%)
CMYKcmyk(38.5%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.28, -32.28, 45.21)
CIE-LCHlch(46.28, 55.55, 125.53°)
OKLaboklab(52.61% -0.0913 0.1001)
OKLCHoklch(52.61% 0.135 132.4)
XYZxyz(10.0157, 15.4763, 3.2700)
Luminance0.1548 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7A17 #46177A
analogous
#7A7717 #4B7A17 #197A17
triadic
#4B7A17 #174B7A #7A174B
tetradic
#4B7A17 #177A77 #46177A #7A1719
square
#4B7A17 #177A77 #46177A #7A1719
split-complementary
#4B7A17 #17197A #77177A
monochromatic
#101A05 #2B470D #4B7A17 #6BAD21 #8AD933

Accessibility & contrast

On white

5.13
#4B7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#4B7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7A17
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7A17#FFFFFF#000000##FFFFFF
##4B7A171.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#4C7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4b7a17;
/* rgb */ color: rgb(75, 122, 23);
/* oklch */ color: oklch(52.6% 0.135 132.4);
Tailwind
colors: {
  custom: {
    50: '#82a15d',
    500: '#4b7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4b7a17;
$custom-light: #82a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7a17",
  "rgb": {
    "r": 75,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 88.485,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52608,
    "c": 0.13543,
    "h": 132.4
  },
  "luminance": 0.15477
}

Semantic roles & 50–950 ramp

primary
#4B7A17
secondary
#743EAF
accent
#3DEB8F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4B7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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