#7F7520#7F7520

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

Color values

HEX#7F7520
RGBrgb(127, 117, 32)
HSLhsl(54, 60%, 31%)
HSVhsv(54, 75%, 50%)
CMYKcmyk(0%, 7.9%, 74.8%, 50.2%)
CIE-LABlab(48.69, -6.38, 45.58)
CIE-LCHlch(48.69, 46.03, 97.97°)
OKLaboklab(55.55% -0.0222 0.1009)
OKLCHoklch(55.55% 0.103 102.4)
XYZxyz(15.3751, 17.3396, 3.9032)
Luminance0.1734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7520 #202A7F
analogous
#7F4520 #7F7520 #597F20
triadic
#7F7520 #207F75 #75207F
tetradic
#7F7520 #207F45 #202A7F #7F2059
square
#7F7520 #207F45 #202A7F #7F2059
split-complementary
#7F7520 #20597F #45207F
monochromatic
#1D1B07 #4E4814 #7F7520 #B0A22C #D1C348

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7520#FFFFFF#000000##FFFFFF
##7F75201.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)
#807111
Deuteranopia (green-blind)
#837626
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f7520;
/* rgb */ color: rgb(127, 117, 32);
/* oklch */ color: oklch(55.5% 0.103 102.4);
Tailwind
colors: {
  custom: {
    50: '#a79c62',
    500: '#7f7520',
    950: '#000000',
  },
}
SCSS
$custom: #7f7520;
$custom-light: #a79c62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7520",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 32
  },
  "hsl": {
    "h": 53.684,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55545,
    "c": 0.10329,
    "h": 102.4
  },
  "luminance": 0.17339
}

Semantic roles & 50–950 ramp

primary
#7F7520
secondary
#4954B2
accent
#56E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7520

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

Preview Lab → · Contrast checker → · Palette generator →

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