#7F6D17#7F6D17

#7F6D17 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.7% C 0.102 H 96.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F6D17
RGBrgb(127, 109, 23)
HSLhsl(50, 69%, 29%)
HSVhsv(50, 82%, 50%)
CMYKcmyk(0%, 14.2%, 81.9%, 50.2%)
CIE-LABlab(46.33, -2.25, 46.74)
CIE-LCHlch(46.33, 46.79, 92.75°)
OKLaboklab(53.66% -0.0115 0.1014)
OKLCHoklch(53.66% 0.102 96.5)
XYZxyz(14.3765, 15.5120, 3.0473)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F6D17 #17297F
analogous
#7F3917 #7F6D17 #5D7F17
triadic
#7F6D17 #177F6D #6D177F
tetradic
#7F6D17 #177F39 #17297F #7F175D
square
#7F6D17 #177F39 #17297F #7F175D
split-complementary
#7F6D17 #175D7F #39177F
monochromatic
#1A1605 #4B410E #7F6D17 #B39920 #DBBE36

Accessibility & contrast

On white

5.12
#7F6D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7F6D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F6D17
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F6D17#FFFFFF#000000##FFFFFF
##7F6D171.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A03
Deuteranopia (green-blind)
#7E701D
Tritanopia (blue-blind)
#8A645D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f6d17;
/* rgb */ color: rgb(127, 109, 23);
/* oklch */ color: oklch(53.7% 0.102 96.5);
Tailwind
colors: {
  custom: {
    50: '#a8965c',
    500: '#7f6d17',
    950: '#000000',
  },
}
SCSS
$custom: #7f6d17;
$custom-light: #a8965c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f6d17",
  "rgb": {
    "r": 127,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 49.615,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53658,
    "c": 0.10209,
    "h": 96.5
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

primary
#7F6D17
secondary
#3E53B4
accent
#5AEC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F6D17

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

Preview Lab → · Contrast checker → · Palette generator →

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