#4E7817#4E7817

#4E7817 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.3% C 0.131 H 130.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#4E7817
RGBrgb(78, 120, 23)
HSLhsl(86, 68%, 28%)
HSVhsv(86, 81%, 47%)
CMYKcmyk(35%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.79, -30.19, 44.81)
CIE-LCHlch(45.79, 54.04, 123.97°)
OKLaboklab(52.25% -0.0858 0.0992)
OKLCHoklch(52.25% 0.131 130.9)
XYZxyz(10.0129, 15.1141, 3.2002)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7817 #411778
analogous
#787117 #4E7817 #1E7817
triadic
#4E7817 #174E78 #78174E
tetradic
#4E7817 #177871 #411778 #78171E
square
#4E7817 #177871 #411778 #78171E
split-complementary
#4E7817 #171E78 #711778
monochromatic
#111A05 #2D450D #4E7817 #6FAB21 #90D832

Accessibility & contrast

On white

5.22
#4E7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4E7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7817
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7817#FFFFFF#000000##FFFFFF
##4E78171.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#786B21
Tritanopia (blue-blind)
#507366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4e7817;
/* rgb */ color: rgb(78, 120, 23);
/* oklch */ color: oklch(52.3% 0.131 130.9);
Tailwind
colors: {
  custom: {
    50: '#849f5d',
    500: '#4e7817',
    950: '#000000',
  },
}
SCSS
$custom: #4e7817;
$custom-light: #849f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7817",
  "rgb": {
    "r": 78,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 85.979,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52253,
    "c": 0.13113,
    "h": 130.9
  },
  "luminance": 0.15115
}

Semantic roles & 50–950 ramp

primary
#4E7817
secondary
#6E3EAD
accent
#3DEB88
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4E7817

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

Preview Lab → · Contrast checker → · Palette generator →

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