#4E6817#4E6817

#4E6817 is a mid, moderate yellow-green. Relative luminance 0.116; OKLCH L 48.0% C 0.110 H 126.1°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#4E6817
RGBrgb(78, 104, 23)
HSLhsl(79, 64%, 25%)
HSVhsv(79, 78%, 41%)
CMYKcmyk(25%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.54, -22.37, 39.81)
CIE-LCHlch(40.54, 45.67, 119.33°)
OKLaboklab(47.99% -0.0646 0.0887)
OKLCHoklch(47.99% 0.11 126.1)
XYZxyz(8.2469, 11.5821, 2.6115)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E6817 #311768
analogous
#685917 #4E6817 #266817
triadic
#4E6817 #174E68 #68174E
tetradic
#4E6817 #176859 #311768 #681726
square
#4E6817 #176859 #311768 #681726
split-complementary
#4E6817 #172668 #591768
monochromatic
#131906 #28360C #4E6817 #749A22 #99CC2D

Accessibility & contrast

On white

6.33
#4E6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4E6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E6817
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E6817#FFFFFF#000000##FFFFFF
##4E68171.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6107
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#526358
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4e6817;
/* rgb */ color: rgb(78, 104, 23);
/* oklch */ color: oklch(48.0% 0.110 126.1);
Tailwind
colors: {
  custom: {
    50: '#82935b',
    500: '#4e6817',
    950: '#000000',
  },
}
SCSS
$custom: #4e6817;
$custom-light: #82935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e6817",
  "rgb": {
    "r": 78,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 79.259,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47986,
    "c": 0.10967,
    "h": 126.1
  },
  "luminance": 0.11582
}

Semantic roles & 50–950 ramp

primary
#4E6817
secondary
#5C3D9E
accent
#41E776
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4E6817

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

Preview Lab → · Contrast checker → · Palette generator →

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