#7F7420#7F7420

#7F7420 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.3% C 0.102 H 101.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F7420
RGBrgb(127, 116, 32)
HSLhsl(53, 60%, 31%)
HSVhsv(53, 75%, 50%)
CMYKcmyk(0%, 8.7%, 74.8%, 50.2%)
CIE-LABlab(48.40, -5.82, 45.30)
CIE-LCHlch(48.40, 45.67, 97.32°)
OKLaboklab(55.32% -0.0207 0.1003)
OKLCHoklch(55.32% 0.102 101.6)
XYZxyz(15.2592, 17.1078, 3.8646)
Luminance0.1711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7420 #202B7F
analogous
#7F4420 #7F7420 #5A7F20
triadic
#7F7420 #207F74 #74207F
tetradic
#7F7420 #207F44 #202B7F #7F205A
square
#7F7420 #207F44 #202B7F #7F205A
split-complementary
#7F7420 #205A7F #44207F
monochromatic
#1D1B07 #4E4714 #7F7420 #B0A12C #D1C148

Accessibility & contrast

On white

4.75
#7F7420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7F7420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7420
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7420#FFFFFF#000000##FFFFFF
##7F74201.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7012
Deuteranopia (green-blind)
#827526
Tritanopia (blue-blind)
#896B64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7420;
/* rgb */ color: rgb(127, 116, 32);
/* oklch */ color: oklch(55.3% 0.102 101.6);
Tailwind
colors: {
  custom: {
    50: '#a79b62',
    500: '#7f7420',
    950: '#000000',
  },
}
SCSS
$custom: #7f7420;
$custom-light: #a79b62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7420",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 32
  },
  "hsl": {
    "h": 53.053,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55315,
    "c": 0.10238,
    "h": 101.6
  },
  "luminance": 0.17107
}

Semantic roles & 50–950 ramp

primary
#7F7420
secondary
#4955B2
accent
#57E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7420

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

Preview Lab → · Contrast checker → · Palette generator →

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