#7D821D#7D821D

#7D821D is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.119 H 112.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7D821D
RGBrgb(125, 130, 29)
HSLhsl(63, 64%, 31%)
HSVhsv(63, 78%, 51%)
CMYKcmyk(3.8%, 0%, 77.7%, 49%)
CIE-LABlab(52.30, -14.57, 50.05)
CIE-LCHlch(52.30, 52.13, 106.23°)
OKLaboklab(58.38% -0.0454 0.1098)
OKLCHoklch(58.38% 0.119 112.4)
XYZxyz(16.6624, 20.4143, 4.2248)
Luminance0.2041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D821D #221D82
analogous
#82541D #7D821D #4A821D
triadic
#7D821D #1D7D82 #821D7D
tetradic
#7D821D #1D8254 #221D82 #821D4A
square
#7D821D #1D8254 #221D82 #821D4A
split-complementary
#7D821D #1D4A82 #541D82
monochromatic
#1D1E07 #4D5012 #7D821D #ADB428 #CED544

Accessibility & contrast

On white

4.13
#7D821D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7D821D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D821D
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D821D#FFFFFF#000000##000000
##7D821D1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C05
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#867A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7d821d;
/* rgb */ color: rgb(125, 130, 29);
/* oklch */ color: oklch(58.4% 0.119 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a662',
    500: '#7d821d',
    950: '#000000',
  },
}
SCSS
$custom: #7d821d;
$custom-light: #a6a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7d821d",
  "rgb": {
    "r": 125,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 62.97,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58382,
    "c": 0.11884,
    "h": 112.4
  },
  "luminance": 0.20414
}

Semantic roles & 50–950 ramp

primary
#7D821D
secondary
#4B46B5
accent
#41E749
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D821D

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

Preview Lab → · Contrast checker → · Palette generator →

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