#7F6511#7F6511

#7F6511 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.8% C 0.100 H 89.7°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7F6511
RGBrgb(127, 101, 17)
HSLhsl(46, 76%, 28%)
HSVhsv(46, 87%, 50%)
CMYKcmyk(0%, 20.5%, 86.6%, 50.2%)
CIE-LABlab(44.03, 2.17, 46.70)
CIE-LCHlch(44.03, 46.75, 87.34°)
OKLaboklab(51.84% 0.0005 0.1)
OKLCHoklch(51.84% 0.1 89.7)
XYZxyz(13.5081, 13.8608, 2.4941)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6511 #112B7F
analogous
#7F2E11 #7F6511 #627F11
triadic
#7F6511 #117F65 #65117F
tetradic
#7F6511 #117F2E #112B7F #7F1162
square
#7F6511 #117F2E #112B7F #7F1162
split-complementary
#7F6511 #11627F #2E117F
monochromatic
#1B1504 #493A0A #7F6511 #B59018 #E2B628

Accessibility & contrast

On white

5.57
#7F6511 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7F6511 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6511
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6511#FFFFFF#000000##FFFFFF
##7F65111.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#786B17
Tritanopia (blue-blind)
#8A5B56
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f6511;
/* rgb */ color: rgb(127, 101, 17);
/* oklch */ color: oklch(51.8% 0.100 89.7);
Tailwind
colors: {
  custom: {
    50: '#a89059',
    500: '#7f6511',
    950: '#000000',
  },
}
SCSS
$custom: #7f6511;
$custom-light: #a89059;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6511",
  "rgb": {
    "r": 127,
    "g": 101,
    "b": 17
  },
  "hsl": {
    "h": 45.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51836,
    "c": 0.10001,
    "h": 89.7
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#7F6511
secondary
#3755B5
accent
#62F335
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F6511

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

Preview Lab → · Contrast checker → · Palette generator →

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