#7D801F#7D801F

#7D801F is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.115 H 111.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7D801F
RGBrgb(125, 128, 31)
HSLhsl(62, 61%, 31%)
HSVhsv(62, 76%, 50%)
CMYKcmyk(2.3%, 0%, 75.8%, 49.8%)
CIE-LABlab(51.72, -13.40, 48.80)
CIE-LCHlch(51.72, 50.61, 105.36°)
OKLaboklab(57.92% -0.0419 0.1076)
OKLCHoklch(57.92% 0.115 111.3)
XYZxyz(16.4245, 19.8977, 4.2715)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D801F #221F80
analogous
#80521F #7D801F #4C801F
triadic
#7D801F #1F7D80 #801F7D
tetradic
#7D801F #1F8052 #221F80 #801F4C
square
#7D801F #1F8052 #221F80 #801F4C
split-complementary
#7D801F #1F4C80 #521F80
monochromatic
#1D1D07 #4D4F13 #7D801F #ADB12B #CED247

Accessibility & contrast

On white

4.22
#7D801F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7D801F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D801F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D801F#FFFFFF#000000##000000
##7D801F1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8B7C27
Tritanopia (blue-blind)
#86786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7d801f;
/* rgb */ color: rgb(125, 128, 31);
/* oklch */ color: oklch(57.9% 0.115 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a463',
    500: '#7d801f',
    950: '#000000',
  },
}
SCSS
$custom: #7d801f;
$custom-light: #a6a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7d801f",
  "rgb": {
    "r": 125,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 61.856,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.11545,
    "h": 111.3
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

primary
#7D801F
secondary
#4B48B3
accent
#44E449
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D801F

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

Preview Lab → · Contrast checker → · Palette generator →

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