#7D821E#7D821E

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

Color values

HEX#7D821E
RGBrgb(125, 130, 30)
HSLhsl(63, 63%, 31%)
HSVhsv(63, 77%, 51%)
CMYKcmyk(3.8%, 0%, 76.9%, 49%)
CIE-LABlab(52.31, -14.53, 49.71)
CIE-LCHlch(52.31, 51.79, 106.29°)
OKLaboklab(58.39% -0.0452 0.1093)
OKLCHoklch(58.39% 0.118 112.4)
XYZxyz(16.6750, 20.4194, 4.2910)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D821E #231E82
analogous
#82551E #7D821E #4B821E
triadic
#7D821E #1E7D82 #821E7D
tetradic
#7D821E #1E8255 #231E82 #821E4B
square
#7D821E #1E8255 #231E82 #821E4B
split-complementary
#7D821E #1E4B82 #551E82
monochromatic
#1D1F07 #4D5013 #7D821E #ADB429 #CDD446

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D821E#FFFFFF#000000##000000
##7D821E1.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)
#8C7C07
Deuteranopia (green-blind)
#8D7E26
Tritanopia (blue-blind)
#867A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7d821e;
/* rgb */ color: rgb(125, 130, 30);
/* oklch */ color: oklch(58.4% 0.118 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a662',
    500: '#7d821e',
    950: '#000000',
  },
}
SCSS
$custom: #7d821e;
$custom-light: #a6a662;
$custom-dark: #000000;
JSON
{
  "hex": "#7d821e",
  "rgb": {
    "r": 125,
    "g": 130,
    "b": 30
  },
  "hsl": {
    "h": 63,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.58388,
    "c": 0.11826,
    "h": 112.4
  },
  "luminance": 0.20419
}

Semantic roles & 50–950 ramp

primary
#7D821E
secondary
#4C47B5
accent
#42E64A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D821E

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

Preview Lab → · Contrast checker → · Palette generator →

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