#4E7A17#4E7A17

#4E7A17 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.134 H 131.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#4E7A17
RGBrgb(78, 122, 23)
HSLhsl(87, 68%, 28%)
HSVhsv(87, 81%, 48%)
CMYKcmyk(36.1%, 0%, 81.1%, 52.2%)
CIE-LABlab(46.45, -31.12, 45.43)
CIE-LCHlch(46.45, 55.07, 124.41°)
OKLaboklab(52.79% -0.0883 0.1004)
OKLCHoklch(52.79% 0.134 131.3)
XYZxyz(10.2560, 15.6002, 3.2812)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7A17 #43177A
analogous
#7A7417 #4E7A17 #1C7A17
triadic
#4E7A17 #174E7A #7A174E
tetradic
#4E7A17 #177A74 #43177A #7A171C
square
#4E7A17 #177A74 #43177A #7A171C
split-complementary
#4E7A17 #171C7A #74177A
monochromatic
#101A05 #2D470D #4E7A17 #6FAD21 #8FD933

Accessibility & contrast

On white

5.10
#4E7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#4E7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7A17
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7A17#FFFFFF#000000##FFFFFF
##4E7A171.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e7a17;
/* rgb */ color: rgb(78, 122, 23);
/* oklch */ color: oklch(52.8% 0.134 131.3);
Tailwind
colors: {
  custom: {
    50: '#84a15d',
    500: '#4e7a17',
    950: '#000000',
  },
}
SCSS
$custom: #4e7a17;
$custom-light: #84a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7a17",
  "rgb": {
    "r": 78,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 86.667,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52788,
    "c": 0.13375,
    "h": 131.3
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#4E7A17
secondary
#703EAF
accent
#3DEB8A
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4E7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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