#4E7021#4E7021

#4E7021 is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.2% C 0.114 H 129.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4E7021
RGBrgb(78, 112, 33)
HSLhsl(86, 54%, 28%)
HSVhsv(86, 71%, 44%)
CMYKcmyk(30.4%, 0%, 70.5%, 56.1%)
CIE-LABlab(43.24, -25.68, 38.40)
CIE-LCHlch(43.24, 46.19, 123.77°)
OKLaboklab(50.2% -0.0727 0.0873)
OKLCHoklch(50.2% 0.114 129.8)
XYZxyz(9.2105, 13.3176, 3.5238)
Luminance0.1332 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E7021 #432170
analogous
#706A21 #4E7021 #267021
triadic
#4E7021 #214E70 #70214E
tetradic
#4E7021 #21706A #432170 #702126
square
#4E7021 #21706A #432170 #702126
split-complementary
#4E7021 #212670 #6A2170
monochromatic
#101807 #2D4113 #4E7021 #6F9F2F #8FC844

Accessibility & contrast

On white

5.73
#4E7021 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4E7021 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E7021
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E7021#FFFFFF#000000##FFFFFF
##4E70211.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756816
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#506B60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4e7021;
/* rgb */ color: rgb(78, 112, 33);
/* oklch */ color: oklch(50.2% 0.114 129.8);
Tailwind
colors: {
  custom: {
    50: '#829961',
    500: '#4e7021',
    950: '#000000',
  },
}
SCSS
$custom: #4e7021;
$custom-light: #829961;
$custom-dark: #000000;
JSON
{
  "hex": "#4e7021",
  "rgb": {
    "r": 78,
    "g": 112,
    "b": 33
  },
  "hsl": {
    "h": 85.823,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50196,
    "c": 0.11362,
    "h": 129.8
  },
  "luminance": 0.13318
}

Semantic roles & 50–950 ramp

primary
#4E7021
secondary
#7049A4
accent
#4ADE8A
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4E7021

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

Preview Lab → · Contrast checker → · Palette generator →

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