#4E7217#4E7217

#4E7217 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.6% C 0.123 H 129.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#4E7217
RGBrgb(78, 114, 23)
HSLhsl(84, 66%, 27%)
HSVhsv(84, 80%, 45%)
CMYKcmyk(31.6%, 0%, 79.8%, 55.3%)
CIE-LABlab(43.82, -27.34, 42.96)
CIE-LCHlch(43.82, 50.92, 122.48°)
OKLaboklab(50.65% -0.0781 0.0953)
OKLCHoklch(50.65% 0.123 129.3)
XYZxyz(9.3138, 13.7159, 2.9672)
Luminance0.1372 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7217 #3B1772
analogous
#726917 #4E7217 #217217
triadic
#4E7217 #174E72 #72174E
tetradic
#4E7217 #177269 #3B1772 #721721
square
#4E7217 #177269 #3B1772 #721721
split-complementary
#4E7217 #172172 #691772
monochromatic
#111905 #2B3F0D #4E7217 #71A521 #93D52E

Accessibility & contrast

On white

5.61
#4E7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#4E7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7217
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7217#FFFFFF#000000##FFFFFF
##4E72171.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786902
Deuteranopia (green-blind)
#736720
Tritanopia (blue-blind)
#506D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4e7217;
/* rgb */ color: rgb(78, 114, 23);
/* oklch */ color: oklch(50.6% 0.123 129.3);
Tailwind
colors: {
  custom: {
    50: '#839a5c',
    500: '#4e7217',
    950: '#000000',
  },
}
SCSS
$custom: #4e7217;
$custom-light: #839a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7217",
  "rgb": {
    "r": 78,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 83.736,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50649,
    "c": 0.12318,
    "h": 129.3
  },
  "luminance": 0.13716
}

Semantic roles & 50–950 ramp

primary
#4E7217
secondary
#673DA8
accent
#3EE982
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4E7217

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

Preview Lab → · Contrast checker → · Palette generator →

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