#7F7220#7F7220

#7F7220 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.9% C 0.101 H 100.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7F7220
RGBrgb(127, 114, 32)
HSLhsl(52, 60%, 31%)
HSVhsv(52, 75%, 50%)
CMYKcmyk(0%, 10.2%, 74.8%, 50.2%)
CIE-LABlab(47.82, -4.69, 44.74)
CIE-LCHlch(47.82, 44.98, 95.98°)
OKLaboklab(54.86% -0.0175 0.0991)
OKLCHoklch(54.86% 0.101 100)
XYZxyz(15.0311, 16.6516, 3.7886)
Luminance0.1665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7220 #202D7F
analogous
#7F4220 #7F7220 #5C7F20
triadic
#7F7220 #207F72 #72207F
tetradic
#7F7220 #207F42 #202D7F #7F205C
square
#7F7220 #207F42 #202D7F #7F205C
split-complementary
#7F7220 #205C7F #42207F
monochromatic
#1D1A07 #4E4614 #7F7220 #B09E2C #D1BE48

Accessibility & contrast

On white

4.85
#7F7220 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7F7220 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7220
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7220#FFFFFF#000000##FFFFFF
##7F72201.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F12
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#896962
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7220;
/* rgb */ color: rgb(127, 114, 32);
/* oklch */ color: oklch(54.9% 0.101 100.0);
Tailwind
colors: {
  custom: {
    50: '#a79a62',
    500: '#7f7220',
    950: '#000000',
  },
}
SCSS
$custom: #7f7220;
$custom-light: #a79a62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7220",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 32
  },
  "hsl": {
    "h": 51.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54857,
    "c": 0.10061,
    "h": 100
  },
  "luminance": 0.16651
}

Semantic roles & 50–950 ramp

primary
#7F7220
secondary
#4957B2
accent
#5BE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7220

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

Preview Lab → · Contrast checker → · Palette generator →

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