#7F802F#7F802F

#7F802F is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.103 H 109.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7F802F
RGBrgb(127, 128, 47)
HSLhsl(61, 46%, 34%)
HSVhsv(61, 63%, 50%)
CMYKcmyk(0.8%, 0%, 63.3%, 49.8%)
CIE-LABlab(52.01, -11.53, 42.51)
CIE-LCHlch(52.01, 44.05, 105.17°)
OKLaboklab(58.23% -0.0351 0.097)
OKLCHoklch(58.23% 0.103 109.9)
XYZxyz(16.9852, 20.1560, 5.6845)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F802F #302F80
analogous
#80592F #7F802F #57802F
triadic
#7F802F #2F7F80 #802F7F
tetradic
#7F802F #2F8059 #302F80 #802F57
square
#7F802F #2F8059 #302F80 #802F57
split-complementary
#7F802F #2F5780 #592F80
monochromatic
#26260E #53531F #7F802F #ABAD3F #C5C663

Accessibility & contrast

On white

4.17
#7F802F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7F802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F802F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F802F#FFFFFF#000000##000000
##7F802F1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B25
Deuteranopia (green-blind)
#8B7D34
Tritanopia (blue-blind)
#88786F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f802f;
/* rgb */ color: rgb(127, 128, 47);
/* oklch */ color: oklch(58.2% 0.103 109.9);
Tailwind
colors: {
  custom: {
    50: '#a6a46b',
    500: '#7f802f',
    950: '#000000',
  },
}
SCSS
$custom: #7f802f;
$custom-light: #a6a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f802f",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 60.741,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58234,
    "c": 0.10316,
    "h": 109.9
  },
  "luminance": 0.20156
}

Semantic roles & 50–950 ramp

primary
#7F802F
secondary
#5F5EAD
accent
#52D653
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F802F

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

Preview Lab → · Contrast checker → · Palette generator →

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