#7D802E#7D802E

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

Color values

HEX#7D802E
RGBrgb(125, 128, 46)
HSLhsl(62, 47%, 34%)
HSVhsv(62, 64%, 50%)
CMYKcmyk(2.3%, 0%, 64.1%, 49.8%)
CIE-LABlab(51.83, -12.50, 42.73)
CIE-LCHlch(51.83, 44.52, 106.31°)
OKLaboklab(58.05% -0.0378 0.0974)
OKLCHoklch(58.05% 0.104 111.2)
XYZxyz(16.6702, 19.9960, 5.5657)
Luminance0.2000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D802E #312E80
analogous
#805A2E #7D802E #54802E
triadic
#7D802E #2E7D80 #802E7D
tetradic
#7D802E #2E805A #312E80 #802E54
square
#7D802E #2E805A #312E80 #802E54
split-complementary
#7D802E #2E5480 #5A2E80
monochromatic
#25260E #51531E #7D802E #A9AD3E #C3C762

Accessibility & contrast

On white

4.20
#7D802E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7D802E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D802E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D802E#FFFFFF#000000##000000
##7D802E1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A24
Deuteranopia (green-blind)
#8A7D33
Tritanopia (blue-blind)
#85786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7d802e;
/* rgb */ color: rgb(125, 128, 46);
/* oklch */ color: oklch(58.0% 0.104 111.2);
Tailwind
colors: {
  custom: {
    50: '#a5a46b',
    500: '#7d802e',
    950: '#000000',
  },
}
SCSS
$custom: #7d802e;
$custom-light: #a5a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d802e",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 62.195,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58045,
    "c": 0.10445,
    "h": 111.2
  },
  "luminance": 0.19996
}

Semantic roles & 50–950 ramp

primary
#7D802E
secondary
#605DAD
accent
#51D756
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D802E

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

Preview Lab → · Contrast checker → · Palette generator →

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