#7E6E12#7E6E12

#7E6E12 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.8% C 0.105 H 98.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7E6E12
RGBrgb(126, 110, 18)
HSLhsl(51, 75%, 28%)
HSVhsv(51, 86%, 49%)
CMYKcmyk(0%, 12.7%, 85.7%, 50.6%)
CIE-LABlab(46.49, -3.47, 48.45)
CIE-LCHlch(46.49, 48.57, 94.10°)
OKLaboklab(53.75% -0.0154 0.1041)
OKLCHoklch(53.75% 0.105 98.4)
XYZxyz(14.2901, 15.6319, 2.8367)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6E12 #12227E
analogous
#7E3812 #7E6E12 #587E12
triadic
#7E6E12 #127E6E #6E127E
tetradic
#7E6E12 #127E38 #12227E #7E1258
square
#7E6E12 #127E38 #12227E #7E1258
split-complementary
#7E6E12 #12587E #38127E
monochromatic
#1B1704 #483F0A #7E6E12 #B49D1A #E1C52A

Accessibility & contrast

On white

5.09
#7E6E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E6E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6E12
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6E12#FFFFFF#000000##FFFFFF
##7E6E121.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#7E711A
Tritanopia (blue-blind)
#89655D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e6e12;
/* rgb */ color: rgb(126, 110, 18);
/* oklch */ color: oklch(53.8% 0.105 98.4);
Tailwind
colors: {
  custom: {
    50: '#a7975a',
    500: '#7e6e12',
    950: '#000000',
  },
}
SCSS
$custom: #7e6e12;
$custom-light: #a7975a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6e12",
  "rgb": {
    "r": 126,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 51.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53753,
    "c": 0.10524,
    "h": 98.4
  },
  "luminance": 0.15631
}

Semantic roles & 50–950 ramp

primary
#7E6E12
secondary
#384AB4
accent
#52F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6E12

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

Preview Lab → · Contrast checker → · Palette generator →

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