#7D802A#7D802A

#7D802A is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.108 H 111.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7D802A
RGBrgb(125, 128, 42)
HSLhsl(62, 51%, 33%)
HSVhsv(62, 67%, 50%)
CMYKcmyk(2.3%, 0%, 67.2%, 49.8%)
CIE-LABlab(51.80, -12.78, 44.47)
CIE-LCHlch(51.80, 46.27, 106.03°)
OKLaboklab(58.01% -0.039 0.1004)
OKLCHoklch(58.01% 0.108 111.2)
XYZxyz(16.5950, 19.9659, 5.1697)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D802A #2D2A80
analogous
#80582A #7D802A #52802A
triadic
#7D802A #2A7D80 #802A7D
tetradic
#7D802A #2A8058 #2D2A80 #802A52
square
#7D802A #2A8058 #2D2A80 #802A52
split-complementary
#7D802A #2A5280 #582A80
monochromatic
#23240C #50521B #7D802A #AAAE39 #C5C95B

Accessibility & contrast

On white

4.21
#7D802A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7D802A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D802A
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D802A#FFFFFF#000000##000000
##7D802A1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#8A7D30
Tritanopia (blue-blind)
#86786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d802a;
/* rgb */ color: rgb(125, 128, 42);
/* oklch */ color: oklch(58.0% 0.108 111.2);
Tailwind
colors: {
  custom: {
    50: '#a5a469',
    500: '#7d802a',
    950: '#000000',
  },
}
SCSS
$custom: #7d802a;
$custom-light: #a5a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7d802a",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 62.093,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58007,
    "c": 0.10773,
    "h": 111.2
  },
  "luminance": 0.19965
}

Semantic roles & 50–950 ramp

primary
#7D802A
secondary
#5A57AF
accent
#4EDA53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D802A

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

Preview Lab → · Contrast checker → · Palette generator →

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