#7D802B#7D802B

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

Color values

HEX#7D802B
RGBrgb(125, 128, 43)
HSLhsl(62, 50%, 34%)
HSVhsv(62, 66%, 50%)
CMYKcmyk(2.3%, 0%, 66.4%, 49.8%)
CIE-LABlab(51.81, -12.71, 44.04)
CIE-LCHlch(51.81, 45.84, 106.10°)
OKLaboklab(58.02% -0.0387 0.0997)
OKLCHoklch(58.02% 0.107 111.2)
XYZxyz(16.6132, 19.9731, 5.2651)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D802B #2E2B80
analogous
#80582B #7D802B #52802B
triadic
#7D802B #2B7D80 #802B7D
tetradic
#7D802B #2B8058 #2E2B80 #802B52
square
#7D802B #2B8058 #2E2B80 #802B52
split-complementary
#7D802B #2B5280 #582B80
monochromatic
#24240C #50521C #7D802B #AAAE3A #C5C95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D802B#FFFFFF#000000##000000
##7D802B1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A20
Deuteranopia (green-blind)
#8A7D31
Tritanopia (blue-blind)
#86786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d802b;
/* rgb */ color: rgb(125, 128, 43);
/* oklch */ color: oklch(58.0% 0.107 111.2);
Tailwind
colors: {
  custom: {
    50: '#a5a469',
    500: '#7d802b',
    950: '#000000',
  },
}
SCSS
$custom: #7d802b;
$custom-light: #a5a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7d802b",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 62.118,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58016,
    "c": 0.10694,
    "h": 111.2
  },
  "luminance": 0.19973
}

Semantic roles & 50–950 ramp

primary
#7D802B
secondary
#5B58AE
accent
#4FD953
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D802B

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

Preview Lab → · Contrast checker → · Palette generator →

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