#4E7B21#4E7B21

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

Color values

HEX#4E7B21
RGBrgb(78, 123, 33)
HSLhsl(90, 58%, 31%)
HSVhsv(90, 73%, 48%)
CMYKcmyk(36.6%, 0%, 73.2%, 51.8%)
CIE-LABlab(46.84, -30.94, 42.11)
CIE-LCHlch(46.84, 52.26, 126.31°)
OKLaboklab(53.13% -0.0871 0.0951)
OKLCHoklch(53.13% 0.129 132.5)
XYZxyz(10.4992, 15.8950, 3.9534)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7B21 #4E217B
analogous
#7B7B21 #4E7B21 #217B21
triadic
#4E7B21 #214E7B #7B214E
tetradic
#4E7B21 #217B7B #4E217B #7B2121
square
#4E7B21 #217B7B #4E217B #7B2121
split-complementary
#4E7B21 #21217B #7B217B
monochromatic
#111A07 #2F4B14 #4E7B21 #6DAB2E #8BCE48

Accessibility & contrast

On white

5.03
#4E7B21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4E7B21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7B21
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7B21#FFFFFF#000000##FFFFFF
##4E7B211.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#4F7669
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4e7b21;
/* rgb */ color: rgb(78, 123, 33);
/* oklch */ color: oklch(53.1% 0.129 132.5);
Tailwind
colors: {
  custom: {
    50: '#83a162',
    500: '#4e7b21',
    950: '#000000',
  },
}
SCSS
$custom: #4e7b21;
$custom-light: #83a162;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7b21",
  "rgb": {
    "r": 78,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53127,
    "c": 0.12894,
    "h": 132.5
  },
  "luminance": 0.15895
}

Semantic roles & 50–950 ramp

primary
#4E7B21
secondary
#7C4AAE
accent
#47E194
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F05
muted
#7C7E7A

Preview Lab

Preview with #4E7B21

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

Preview Lab → · Contrast checker → · Palette generator →

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