#7E6D12#7E6D12

#7E6D12 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.5% C 0.104 H 97.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E6D12
RGBrgb(126, 109, 18)
HSLhsl(51, 75%, 28%)
HSVhsv(51, 86%, 49%)
CMYKcmyk(0%, 13.5%, 85.7%, 50.6%)
CIE-LABlab(46.20, -2.90, 48.20)
CIE-LCHlch(46.20, 48.29, 93.45°)
OKLaboklab(53.53% -0.0138 0.1036)
OKLCHoklch(53.53% 0.104 97.6)
XYZxyz(14.1828, 15.4173, 2.8010)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6D12 #12237E
analogous
#7E3712 #7E6D12 #597E12
triadic
#7E6D12 #127E6D #6D127E
tetradic
#7E6D12 #127E37 #12237E #7E1259
square
#7E6D12 #127E37 #12237E #7E1259
split-complementary
#7E6D12 #12597E #37127E
monochromatic
#1B1704 #483F0A #7E6D12 #B49B1A #E1C42A

Accessibility & contrast

On white

5.14
#7E6D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7E6D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6D12
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6D12#FFFFFF#000000##FFFFFF
##7E6D121.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#7E7019
Tritanopia (blue-blind)
#89645D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e6d12;
/* rgb */ color: rgb(126, 109, 18);
/* oklch */ color: oklch(53.5% 0.104 97.6);
Tailwind
colors: {
  custom: {
    50: '#a7965a',
    500: '#7e6d12',
    950: '#000000',
  },
}
SCSS
$custom: #7e6d12;
$custom-light: #a7965a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6d12",
  "rgb": {
    "r": 126,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 50.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53526,
    "c": 0.10448,
    "h": 97.6
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#7E6D12
secondary
#384BB4
accent
#54F236
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6D12

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

Preview Lab → · Contrast checker → · Palette generator →

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