#7F6C17#7F6C17

#7F6C17 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.4% C 0.101 H 95.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7F6C17
RGBrgb(127, 108, 23)
HSLhsl(49, 69%, 29%)
HSVhsv(49, 82%, 50%)
CMYKcmyk(0%, 15%, 81.9%, 50.2%)
CIE-LABlab(46.04, -1.68, 46.48)
CIE-LCHlch(46.04, 46.51, 92.06°)
OKLaboklab(53.43% -0.0099 0.1009)
OKLCHoklch(53.43% 0.101 95.6)
XYZxyz(14.2704, 15.2998, 3.0120)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6C17 #172A7F
analogous
#7F3817 #7F6C17 #5E7F17
triadic
#7F6C17 #177F6C #6C177F
tetradic
#7F6C17 #177F38 #172A7F #7F175E
square
#7F6C17 #177F38 #172A7F #7F175E
split-complementary
#7F6C17 #175E7F #38177F
monochromatic
#1A1605 #4B400E #7F6C17 #B39820 #DBBC36

Accessibility & contrast

On white

5.17
#7F6C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7F6C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6C17
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6C17#FFFFFF#000000##FFFFFF
##7F6C171.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A03
Deuteranopia (green-blind)
#7D701D
Tritanopia (blue-blind)
#8A635C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f6c17;
/* rgb */ color: rgb(127, 108, 23);
/* oklch */ color: oklch(53.4% 0.101 95.6);
Tailwind
colors: {
  custom: {
    50: '#a8955c',
    500: '#7f6c17',
    950: '#000000',
  },
}
SCSS
$custom: #7f6c17;
$custom-light: #a8955c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6c17",
  "rgb": {
    "r": 127,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 49.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53432,
    "c": 0.10137,
    "h": 95.6
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#7F6C17
secondary
#3E54B4
accent
#5CEC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6C17

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

Preview Lab → · Contrast checker → · Palette generator →

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