#7E8221#7E8221

#7E8221 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.5% C 0.116 H 111.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E8221
RGBrgb(126, 130, 33)
HSLhsl(62, 60%, 32%)
HSVhsv(62, 75%, 51%)
CMYKcmyk(3.1%, 0%, 74.6%, 49%)
CIE-LABlab(52.41, -13.92, 48.75)
CIE-LCHlch(52.41, 50.70, 105.94°)
OKLaboklab(58.5% -0.0433 0.1078)
OKLCHoklch(58.5% 0.116 111.9)
XYZxyz(16.8619, 20.5111, 4.5093)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8221 #252182
analogous
#825621 #7E8221 #4E8221
triadic
#7E8221 #217E82 #82217E
tetradic
#7E8221 #218256 #252182 #82214E
square
#7E8221 #218256 #252182 #82214E
split-complementary
#7E8221 #214E82 #562182
monochromatic
#1F2008 #4F5115 #7E8221 #ADB32D #CCD24C

Accessibility & contrast

On white

4.12
#7E8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#7E8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8221
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8221#FFFFFF#000000##000000
##7E82211.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0E
Deuteranopia (green-blind)
#8D7E29
Tritanopia (blue-blind)
#877A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e8221;
/* rgb */ color: rgb(126, 130, 33);
/* oklch */ color: oklch(58.5% 0.116 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a664',
    500: '#7e8221',
    950: '#000000',
  },
}
SCSS
$custom: #7e8221;
$custom-light: #a6a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8221",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 62.474,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58496,
    "c": 0.11616,
    "h": 111.9
  },
  "luminance": 0.20511
}

Semantic roles & 50–950 ramp

primary
#7E8221
secondary
#4F4AB4
accent
#45E34C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8221

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

Preview Lab → · Contrast checker → · Palette generator →

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