#7F802A#7F802A

#7F802A is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.2% C 0.107 H 110.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F802A
RGBrgb(127, 128, 42)
HSLhsl(61, 51%, 33%)
HSVhsv(61, 67%, 50%)
CMYKcmyk(0.8%, 0%, 67.2%, 49.8%)
CIE-LABlab(51.97, -11.87, 44.70)
CIE-LCHlch(51.97, 46.25, 104.87°)
OKLaboklab(58.19% -0.0366 0.1008)
OKLCHoklch(58.19% 0.107 110)
XYZxyz(16.8900, 20.1180, 5.1835)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F802A #2B2A80
analogous
#80562A #7F802A #54802A
triadic
#7F802A #2A7F80 #802A7F
tetradic
#7F802A #2A8056 #2B2A80 #802A54
square
#7F802A #2A8056 #2B2A80 #802A54
split-complementary
#7F802A #2A5480 #562A80
monochromatic
#24240C #51521B #7F802A #ADAE39 #C8C95B

Accessibility & contrast

On white

4.18
#7F802A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7F802A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F802A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F802A#FFFFFF#000000##000000
##7F802A1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#8B7D30
Tritanopia (blue-blind)
#88786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f802a;
/* rgb */ color: rgb(127, 128, 42);
/* oklch */ color: oklch(58.2% 0.107 110.0);
Tailwind
colors: {
  custom: {
    50: '#a7a469',
    500: '#7f802a',
    950: '#000000',
  },
}
SCSS
$custom: #7f802a;
$custom-light: #a7a469;
$custom-dark: #000000;
JSON
{
  "hex": "#7f802a",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 60.698,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58186,
    "c": 0.10728,
    "h": 110
  },
  "luminance": 0.20118
}

Semantic roles & 50–950 ramp

primary
#7F802A
secondary
#5857AF
accent
#4EDA4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F802A

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

Preview Lab → · Contrast checker → · Palette generator →

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