#4E7B18#4E7B18

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

Color values

HEX#4E7B18
RGBrgb(78, 123, 24)
HSLhsl(87, 67%, 29%)
HSVhsv(87, 80%, 48%)
CMYKcmyk(36.6%, 0%, 80.5%, 51.8%)
CIE-LABlab(46.78, -31.53, 45.41)
CIE-LCHlch(46.78, 55.28, 124.77°)
OKLaboklab(53.06% -0.0894 0.1006)
OKLCHoklch(53.06% 0.135 131.6)
XYZxyz(10.3896, 15.8512, 3.3761)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7B18 #45187B
analogous
#7B7718 #4E7B18 #1C7B18
triadic
#4E7B18 #184E7B #7B184E
tetradic
#4E7B18 #187B77 #45187B #7B181C
square
#4E7B18 #187B77 #45187B #7B181C
split-complementary
#4E7B18 #181C7B #77187B
monochromatic
#101A05 #2E480E #4E7B18 #6EAE22 #8ED836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E7B18#FFFFFF#000000##FFFFFF
##4E7B181.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)
#7B6E23
Tritanopia (blue-blind)
#4F7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4e7b18;
/* rgb */ color: rgb(78, 123, 24);
/* oklch */ color: oklch(53.1% 0.135 131.6);
Tailwind
colors: {
  custom: {
    50: '#84a15e',
    500: '#4e7b18',
    950: '#000000',
  },
}
SCSS
$custom: #4e7b18;
$custom-light: #84a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7b18",
  "rgb": {
    "r": 78,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 87.273,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53061,
    "c": 0.13453,
    "h": 131.6
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#4E7B18
secondary
#723FB0
accent
#3EEA8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4E7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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