#7E6F17#7E6F17

#7E6F17 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.104 H 98.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7E6F17
RGBrgb(126, 111, 23)
HSLhsl(51, 69%, 29%)
HSVhsv(51, 82%, 49%)
CMYKcmyk(0%, 11.9%, 81.7%, 50.6%)
CIE-LABlab(46.80, -3.87, 47.12)
CIE-LCHlch(46.80, 47.28, 94.69°)
OKLaboklab(54.01% -0.016 0.1023)
OKLCHoklch(54.01% 0.104 98.9)
XYZxyz(14.4440, 15.8671, 3.1123)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6F17 #17267E
analogous
#7E3C17 #7E6F17 #5A7E17
triadic
#7E6F17 #177E6F #6F177E
tetradic
#7E6F17 #177E3C #17267E #7E175A
square
#7E6F17 #177E3C #17267E #7E175A
split-complementary
#7E6F17 #175A7E #3C177E
monochromatic
#1A1705 #4A410E #7E6F17 #B29D20 #DAC235

Accessibility & contrast

On white

5.03
#7E6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7E6F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6F17
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6F17#FFFFFF#000000##FFFFFF
##7E6F171.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#7F711E
Tritanopia (blue-blind)
#89665F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e6f17;
/* rgb */ color: rgb(126, 111, 23);
/* oklch */ color: oklch(54.0% 0.104 98.9);
Tailwind
colors: {
  custom: {
    50: '#a7985d',
    500: '#7e6f17',
    950: '#000000',
  },
}
SCSS
$custom: #7e6f17;
$custom-light: #a7985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6f17",
  "rgb": {
    "r": 126,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 51.262,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.10357,
    "h": 98.9
  },
  "luminance": 0.15866
}

Semantic roles & 50–950 ramp

primary
#7E6F17
secondary
#3E4FB3
accent
#55EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6F17

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

Preview Lab → · Contrast checker → · Palette generator →

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