#7E821D#7E821D

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

Color values

HEX#7E821D
RGBrgb(126, 130, 29)
HSLhsl(62, 64%, 31%)
HSVhsv(62, 78%, 51%)
CMYKcmyk(3.1%, 0%, 77.7%, 49%)
CIE-LABlab(52.39, -14.12, 50.16)
CIE-LCHlch(52.39, 52.11, 105.72°)
OKLaboklab(58.47% -0.0442 0.11)
OKLCHoklch(58.47% 0.119 111.9)
XYZxyz(16.8092, 20.4900, 4.2317)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E821D #211D82
analogous
#82531D #7E821D #4B821D
triadic
#7E821D #1D7E82 #821D7E
tetradic
#7E821D #1D8253 #211D82 #821D4B
square
#7E821D #1D8253 #211D82 #821D4B
split-complementary
#7E821D #1D4B82 #531D82
monochromatic
#1D1E07 #4E5012 #7E821D #AEB428 #D0D544

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E821D#FFFFFF#000000##000000
##7E821D1.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)
#8C7C05
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#877A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7e821d;
/* rgb */ color: rgb(126, 130, 29);
/* oklch */ color: oklch(58.5% 0.119 111.9);
Tailwind
colors: {
  custom: {
    50: '#a7a662',
    500: '#7e821d',
    950: '#000000',
  },
}
SCSS
$custom: #7e821d;
$custom-light: #a7a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7e821d",
  "rgb": {
    "r": 126,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 62.376,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5847,
    "c": 0.11856,
    "h": 111.9
  },
  "luminance": 0.2049
}

Semantic roles & 50–950 ramp

primary
#7E821D
secondary
#4A46B5
accent
#41E748
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E821D

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

Preview Lab → · Contrast checker → · Palette generator →

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