#7E6C12#7E6C12

#7E6C12 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.3% C 0.104 H 96.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7E6C12
RGBrgb(126, 108, 18)
HSLhsl(50, 75%, 28%)
HSVhsv(50, 86%, 49%)
CMYKcmyk(0%, 14.3%, 85.7%, 50.6%)
CIE-LABlab(45.91, -2.33, 47.96)
CIE-LCHlch(45.91, 48.01, 92.78°)
OKLaboklab(53.3% -0.0121 0.103)
OKLCHoklch(53.3% 0.104 96.7)
XYZxyz(14.0767, 15.2052, 2.7656)
Luminance0.1520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6C12 #12247E
analogous
#7E3612 #7E6C12 #5A7E12
triadic
#7E6C12 #127E6C #6C127E
tetradic
#7E6C12 #127E36 #12247E #7E125A
square
#7E6C12 #127E36 #12247E #7E125A
split-complementary
#7E6C12 #125A7E #36127E
monochromatic
#1B1704 #483E0A #7E6C12 #B49A1A #E1C22A

Accessibility & contrast

On white

5.20
#7E6C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7E6C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6C12
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6C12#FFFFFF#000000##FFFFFF
##7E6C121.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#7D6F19
Tritanopia (blue-blind)
#89635C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e6c12;
/* rgb */ color: rgb(126, 108, 18);
/* oklch */ color: oklch(53.3% 0.104 96.7);
Tailwind
colors: {
  custom: {
    50: '#a7955a',
    500: '#7e6c12',
    950: '#000000',
  },
}
SCSS
$custom: #7e6c12;
$custom-light: #a7955a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6c12",
  "rgb": {
    "r": 126,
    "g": 108,
    "b": 18
  },
  "hsl": {
    "h": 50,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.10375,
    "h": 96.7
  },
  "luminance": 0.15204
}

Semantic roles & 50–950 ramp

primary
#7E6C12
secondary
#384DB4
accent
#55F236
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6C12

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

Preview Lab → · Contrast checker → · Palette generator →

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