#4E7B17#4E7B17

#4E7B17 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.1% C 0.135 H 131.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#4E7B17
RGBrgb(78, 123, 23)
HSLhsl(87, 68%, 29%)
HSVhsv(87, 81%, 48%)
CMYKcmyk(36.6%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.77, -31.58, 45.73)
CIE-LCHlch(46.77, 55.58, 124.63°)
OKLaboklab(53.06% -0.0896 0.1011)
OKLCHoklch(53.06% 0.135 131.5)
XYZxyz(10.3794, 15.8471, 3.3224)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7B17 #44177B
analogous
#7B7617 #4E7B17 #1C7B17
triadic
#4E7B17 #174E7B #7B174E
tetradic
#4E7B17 #177B76 #44177B #7B171C
square
#4E7B17 #177B76 #44177B #7B171C
split-complementary
#4E7B17 #171C7B #76177B
monochromatic
#101A05 #2D470D #4E7B17 #6FAF21 #8ED933

Accessibility & contrast

On white

5.04
#4E7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#4E7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7B17
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7B17#FFFFFF#000000##FFFFFF
##4E7B171.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#4F7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4e7b17;
/* rgb */ color: rgb(78, 123, 23);
/* oklch */ color: oklch(53.1% 0.135 131.5);
Tailwind
colors: {
  custom: {
    50: '#84a15d',
    500: '#4e7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4e7b17;
$custom-light: #84a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7b17",
  "rgb": {
    "r": 78,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 87,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53055,
    "c": 0.13507,
    "h": 131.5
  },
  "luminance": 0.15847
}

Semantic roles & 50–950 ramp

primary
#4E7B17
secondary
#713EB0
accent
#3CEB8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4E7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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