#7F6717#7F6717

#7F6717 is a mid, moderate yellow. Relative luminance 0.143; OKLCH L 52.3% C 0.098 H 91.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7F6717
RGBrgb(127, 103, 23)
HSLhsl(46, 69%, 29%)
HSVhsv(46, 82%, 50%)
CMYKcmyk(0%, 18.9%, 81.9%, 50.2%)
CIE-LABlab(44.63, 1.21, 45.20)
CIE-LCHlch(44.63, 45.22, 88.46°)
OKLaboklab(52.31% -0.0017 0.0981)
OKLCHoklch(52.31% 0.098 91)
XYZxyz(13.7581, 14.2753, 2.8412)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6717 #172F7F
analogous
#7F3317 #7F6717 #637F17
triadic
#7F6717 #177F67 #67177F
tetradic
#7F6717 #177F33 #172F7F #7F1763
square
#7F6717 #177F33 #172F7F #7F1763
split-complementary
#7F6717 #17637F #33177F
monochromatic
#1A1505 #4B3D0E #7F6717 #B39120 #DBB536

Accessibility & contrast

On white

5.45
#7F6717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7F6717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6717
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6717#FFFFFF#000000##FFFFFF
##7F67171.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#8A5E58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f6717;
/* rgb */ color: rgb(127, 103, 23);
/* oklch */ color: oklch(52.3% 0.098 91.0);
Tailwind
colors: {
  custom: {
    50: '#a8925c',
    500: '#7f6717',
    950: '#000000',
  },
}
SCSS
$custom: #7f6717;
$custom-light: #a8925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6717",
  "rgb": {
    "r": 127,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 46.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52313,
    "c": 0.09815,
    "h": 91
  },
  "luminance": 0.14274
}

Semantic roles & 50–950 ramp

primary
#7F6717
secondary
#3E59B4
accent
#64EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7F6717

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

Preview Lab → · Contrast checker → · Palette generator →

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