#7F7620#7F7620

#7F7620 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.8% C 0.104 H 103.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7620
RGBrgb(127, 118, 32)
HSLhsl(54, 60%, 31%)
HSVhsv(54, 75%, 50%)
CMYKcmyk(0%, 7.1%, 74.8%, 50.2%)
CIE-LABlab(48.98, -6.94, 45.86)
CIE-LCHlch(48.98, 46.38, 98.60°)
OKLaboklab(55.78% -0.0238 0.1015)
OKLCHoklch(55.78% 0.104 103.2)
XYZxyz(15.4922, 17.5738, 3.9423)
Luminance0.1757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7620 #20297F
analogous
#7F4620 #7F7620 #587F20
triadic
#7F7620 #207F76 #76207F
tetradic
#7F7620 #207F46 #20297F #7F2058
square
#7F7620 #207F46 #20297F #7F2058
split-complementary
#7F7620 #20587F #46207F
monochromatic
#1D1B07 #4E4914 #7F7620 #B0A32C #D1C448

Accessibility & contrast

On white

4.65
#7F7620 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7F7620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7620
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7620#FFFFFF#000000##FFFFFF
##7F76201.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817211
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#896D65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f7620;
/* rgb */ color: rgb(127, 118, 32);
/* oklch */ color: oklch(55.8% 0.104 103.2);
Tailwind
colors: {
  custom: {
    50: '#a79d62',
    500: '#7f7620',
    950: '#000000',
  },
}
SCSS
$custom: #7f7620;
$custom-light: #a79d62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7620",
  "rgb": {
    "r": 127,
    "g": 118,
    "b": 32
  },
  "hsl": {
    "h": 54.316,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55776,
    "c": 0.10422,
    "h": 103.2
  },
  "luminance": 0.17573
}

Semantic roles & 50–950 ramp

primary
#7F7620
secondary
#4953B2
accent
#54E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7620

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

Preview Lab → · Contrast checker → · Palette generator →

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