#7E8820#7E8820

#7E8820 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.9% C 0.124 H 115.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7E8820
RGBrgb(126, 136, 32)
HSLhsl(66, 62%, 33%)
HSVhsv(66, 76%, 53%)
CMYKcmyk(7.4%, 0%, 76.5%, 46.7%)
CIE-LABlab(54.18, -17.15, 50.80)
CIE-LCHlch(54.18, 53.62, 108.66°)
OKLaboklab(59.92% -0.0523 0.1119)
OKLCHoklch(59.92% 0.124 115.1)
XYZxyz(17.6696, 22.1485, 4.7105)
Luminance0.2215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8820 #2A2088
analogous
#885E20 #7E8820 #4A8820
triadic
#7E8820 #207E88 #88207E
tetradic
#7E8820 #20885E #2A2088 #88204A
square
#7E8820 #20885E #2A2088 #88204A
split-complementary
#7E8820 #204A88 #5E2088
monochromatic
#222509 #505614 #7E8820 #ACBA2C #C8D54D

Accessibility & contrast

On white

3.87
#7E8820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7E8820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8820
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8820#FFFFFF#000000##000000
##7E88201.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928108
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#878074
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8820;
/* rgb */ color: rgb(126, 136, 32);
/* oklch */ color: oklch(59.9% 0.124 115.1);
Tailwind
colors: {
  custom: {
    50: '#a6aa64',
    500: '#7e8820',
    950: '#000000',
  },
}
SCSS
$custom: #7e8820;
$custom-light: #a6aa64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8820",
  "rgb": {
    "r": 126,
    "g": 136,
    "b": 32
  },
  "hsl": {
    "h": 65.769,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59916,
    "c": 0.12356,
    "h": 115.1
  },
  "luminance": 0.22148
}

Semantic roles & 50–950 ramp

primary
#7E8820
secondary
#564CB8
accent
#43E552
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8820

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

Preview Lab → · Contrast checker → · Palette generator →

#7E8820 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva