#7F801D#7F801D

#7F801D is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.116 H 110.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7F801D
RGBrgb(127, 128, 29)
HSLhsl(61, 63%, 31%)
HSVhsv(61, 77%, 50%)
CMYKcmyk(0.8%, 0%, 77.3%, 49.8%)
CIE-LABlab(51.88, -12.58, 49.73)
CIE-LCHlch(51.88, 51.29, 104.20°)
OKLaboklab(58.09% -0.04 0.1091)
OKLCHoklch(58.09% 0.116 110.1)
XYZxyz(16.6939, 20.0396, 4.1508)
Luminance0.2004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F801D #1E1D80
analogous
#804F1D #7F801D #4D801D
triadic
#7F801D #1D7F80 #801D7F
tetradic
#7F801D #1D804F #1E1D80 #801D4D
square
#7F801D #1D804F #1E1D80 #801D4D
split-complementary
#7F801D #1D4D80 #4F1D80
monochromatic
#1C1C06 #4D4E12 #7F801D #B1B228 #D3D443

Accessibility & contrast

On white

4.19
#7F801D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7F801D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F801D
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F801D#FFFFFF#000000##000000
##7F801D1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A06
Deuteranopia (green-blind)
#8C7D25
Tritanopia (blue-blind)
#88776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f801d;
/* rgb */ color: rgb(127, 128, 29);
/* oklch */ color: oklch(58.1% 0.116 110.1);
Tailwind
colors: {
  custom: {
    50: '#a7a462',
    500: '#7f801d',
    950: '#000000',
  },
}
SCSS
$custom: #7f801d;
$custom-light: #a7a462;
$custom-dark: #000000;
JSON
{
  "hex": "#7f801d",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 29
  },
  "hsl": {
    "h": 60.606,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58087,
    "c": 0.11615,
    "h": 110.1
  },
  "luminance": 0.20039
}

Semantic roles & 50–950 ramp

primary
#7F801D
secondary
#4745B3
accent
#42E643
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F801D

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

Preview Lab → · Contrast checker → · Palette generator →

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