#7F7522#7F7522

#7F7522 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.6% C 0.102 H 102.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F7522
RGBrgb(127, 117, 34)
HSLhsl(54, 58%, 32%)
HSVhsv(54, 73%, 50%)
CMYKcmyk(0%, 7.9%, 73.2%, 50.2%)
CIE-LABlab(48.70, -6.27, 44.78)
CIE-LCHlch(48.70, 45.22, 97.98°)
OKLaboklab(55.56% -0.0217 0.0996)
OKLCHoklch(55.56% 0.102 102.3)
XYZxyz(15.4031, 17.3508, 4.0507)
Luminance0.1735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7522 #222C7F
analogous
#7F4722 #7F7522 #5B7F22
triadic
#7F7522 #227F75 #75227F
tetradic
#7F7522 #227F47 #222C7F #7F225B
square
#7F7522 #227F47 #222C7F #7F225B
split-complementary
#7F7522 #225B7F #47227F
monochromatic
#1E1C08 #4F4915 #7F7522 #AFA12F #CFC14C

Accessibility & contrast

On white

4.70
#7F7522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7F7522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7522
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7522#FFFFFF#000000##FFFFFF
##7F75221.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807115
Deuteranopia (green-blind)
#837627
Tritanopia (blue-blind)
#896C65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f7522;
/* rgb */ color: rgb(127, 117, 34);
/* oklch */ color: oklch(55.6% 0.102 102.3);
Tailwind
colors: {
  custom: {
    50: '#a79c63',
    500: '#7f7522',
    950: '#000000',
  },
}
SCSS
$custom: #7f7522;
$custom-light: #a79c63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7522",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 34
  },
  "hsl": {
    "h": 53.548,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55561,
    "c": 0.10191,
    "h": 102.3
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#7F7522
secondary
#4B56B2
accent
#57E147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7522

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

Preview Lab → · Contrast checker → · Palette generator →

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