#7D802C#7D802C

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

Color values

HEX#7D802C
RGBrgb(125, 128, 44)
HSLhsl(62, 49%, 34%)
HSVhsv(62, 66%, 50%)
CMYKcmyk(2.3%, 0%, 65.6%, 49.8%)
CIE-LABlab(51.82, -12.64, 43.61)
CIE-LCHlch(51.82, 45.41, 106.17°)
OKLaboklab(58.03% -0.0384 0.0989)
OKLCHoklch(58.03% 0.106 111.2)
XYZxyz(16.6317, 19.9806, 5.3629)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D802C #2F2C80
analogous
#80592C #7D802C #53802C
triadic
#7D802C #2C7D80 #802C7D
tetradic
#7D802C #2C8059 #2F2C80 #802C53
square
#7D802C #2C8059 #2F2C80 #802C53
split-complementary
#7D802C #2C5380 #592C80
monochromatic
#24250D #51521C #7D802C #A9AE3C #C4C85F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D802C#FFFFFF#000000##000000
##7D802C1.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)
#8A7A21
Deuteranopia (green-blind)
#8A7D31
Tritanopia (blue-blind)
#85786F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d802c;
/* rgb */ color: rgb(125, 128, 44);
/* oklch */ color: oklch(58.0% 0.106 111.2);
Tailwind
colors: {
  custom: {
    50: '#a5a46a',
    500: '#7d802c',
    950: '#000000',
  },
}
SCSS
$custom: #7d802c;
$custom-light: #a5a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d802c",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 62.143,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.10612,
    "h": 111.2
  },
  "luminance": 0.1998
}

Semantic roles & 50–950 ramp

primary
#7D802C
secondary
#5D5AAE
accent
#4FD854
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D802C

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

Preview Lab → · Contrast checker → · Palette generator →

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