#7F7221#7F7221

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

Color values

HEX#7F7221
RGBrgb(127, 114, 33)
HSLhsl(52, 59%, 31%)
HSVhsv(52, 74%, 50%)
CMYKcmyk(0%, 10.2%, 74%, 50.2%)
CIE-LABlab(47.83, -4.64, 44.34)
CIE-LCHlch(47.83, 44.58, 95.97°)
OKLaboklab(54.86% -0.0172 0.0984)
OKLCHoklch(54.86% 0.1 99.9)
XYZxyz(15.0449, 16.6572, 3.8612)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7221 #212E7F
analogous
#7F4321 #7F7221 #5D7F21
triadic
#7F7221 #217F72 #72217F
tetradic
#7F7221 #217F43 #212E7F #7F215D
square
#7F7221 #217F43 #212E7F #7F215D
split-complementary
#7F7221 #215D7F #43217F
monochromatic
#1E1B08 #4E4614 #7F7221 #B09E2E #D0BE4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7221#FFFFFF#000000##FFFFFF
##7F72211.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)
#7D6F14
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#896962
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7221;
/* rgb */ color: rgb(127, 114, 33);
/* oklch */ color: oklch(54.9% 0.100 99.9);
Tailwind
colors: {
  custom: {
    50: '#a79a62',
    500: '#7f7221',
    950: '#000000',
  },
}
SCSS
$custom: #7f7221;
$custom-light: #a79a62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7221",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 51.702,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54865,
    "c": 0.09991,
    "h": 99.9
  },
  "luminance": 0.16656
}

Semantic roles & 50–950 ramp

primary
#7F7221
secondary
#4A58B2
accent
#5BE246
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7221

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

Preview Lab → · Contrast checker → · Palette generator →

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