#7D821B#7D821B

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

Color values

HEX#7D821B
RGBrgb(125, 130, 27)
HSLhsl(63, 66%, 31%)
HSVhsv(63, 79%, 51%)
CMYKcmyk(3.8%, 0%, 79.2%, 49%)
CIE-LABlab(52.29, -14.66, 50.72)
CIE-LCHlch(52.29, 52.79, 106.12°)
OKLaboklab(58.37% -0.0458 0.1109)
OKLCHoklch(58.37% 0.12 112.4)
XYZxyz(16.6385, 20.4048, 4.0987)
Luminance0.2040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D821B #201B82
analogous
#82531B #7D821B #49821B
triadic
#7D821B #1B7D82 #821B7D
tetradic
#7D821B #1B8253 #201B82 #821B49
square
#7D821B #1B8253 #201B82 #821B49
split-complementary
#7D821B #1B4982 #531B82
monochromatic
#1C1D06 #4C4F10 #7D821B #AEB526 #D0D740

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D821B#FFFFFF#000000##000000
##7D821B1.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)
#8C7C00
Deuteranopia (green-blind)
#8D7E24
Tritanopia (blue-blind)
#867A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7d821b;
/* rgb */ color: rgb(125, 130, 27);
/* oklch */ color: oklch(58.4% 0.120 112.4);
Tailwind
colors: {
  custom: {
    50: '#a6a661',
    500: '#7d821b',
    950: '#000000',
  },
}
SCSS
$custom: #7d821b;
$custom-light: #a6a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7d821b",
  "rgb": {
    "r": 125,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 62.913,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5837,
    "c": 0.11995,
    "h": 112.4
  },
  "luminance": 0.20404
}

Semantic roles & 50–950 ramp

primary
#7D821B
secondary
#4943B6
accent
#3FE947
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D821B

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

Preview Lab → · Contrast checker → · Palette generator →

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