#7F6517#7F6517

#7F6517 is a mid, moderate yellow. Relative luminance 0.139; OKLCH L 51.9% C 0.097 H 89.0°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7F6517
RGBrgb(127, 101, 23)
HSLhsl(45, 69%, 29%)
HSVhsv(45, 82%, 50%)
CMYKcmyk(0%, 20.5%, 81.9%, 50.2%)
CIE-LABlab(44.06, 2.38, 44.70)
CIE-LCHlch(44.06, 44.76, 86.95°)
OKLaboklab(51.87% 0.0017 0.0971)
OKLCHoklch(51.87% 0.097 89)
XYZxyz(13.5616, 13.8822, 2.7757)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6517 #17317F
analogous
#7F3117 #7F6517 #657F17
triadic
#7F6517 #177F65 #65177F
tetradic
#7F6517 #177F31 #17317F #7F1765
square
#7F6517 #177F31 #17317F #7F1765
split-complementary
#7F6517 #17657F #31177F
monochromatic
#1A1505 #4B3C0E #7F6517 #B38E20 #DBB136

Accessibility & contrast

On white

5.56
#7F6517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7F6517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6517
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6517#FFFFFF#000000##FFFFFF
##7F65171.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f6517;
/* rgb */ color: rgb(127, 101, 23);
/* oklch */ color: oklch(51.9% 0.097 89.0);
Tailwind
colors: {
  custom: {
    50: '#a8905b',
    500: '#7f6517',
    950: '#000000',
  },
}
SCSS
$custom: #7f6517;
$custom-light: #a8905b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6517",
  "rgb": {
    "r": 127,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 45,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.09706,
    "h": 89
  },
  "luminance": 0.13881
}

Semantic roles & 50–950 ramp

primary
#7F6517
secondary
#3E5CB4
accent
#68EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F6517

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

Preview Lab → · Contrast checker → · Palette generator →

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