#7E6A12#7E6A12

#7E6A12 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.102 H 95.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E6A12
RGBrgb(126, 106, 18)
HSLhsl(49, 75%, 28%)
HSVhsv(49, 86%, 49%)
CMYKcmyk(0%, 15.9%, 85.7%, 50.6%)
CIE-LABlab(45.34, -1.18, 47.47)
CIE-LCHlch(45.34, 47.48, 91.43°)
OKLaboklab(52.85% -0.0089 0.102)
OKLCHoklch(52.85% 0.102 95)
XYZxyz(13.8682, 14.7882, 2.6961)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6A12 #12267E
analogous
#7E3412 #7E6A12 #5C7E12
triadic
#7E6A12 #127E6A #6A127E
tetradic
#7E6A12 #127E34 #12267E #7E125C
square
#7E6A12 #127E34 #12267E #7E125C
split-complementary
#7E6A12 #125C7E #34127E
monochromatic
#1B1704 #483D0A #7E6A12 #B4971A #E1BF2A

Accessibility & contrast

On white

5.31
#7E6A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E6A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6A12
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6A12#FFFFFF#000000##FFFFFF
##7E6A121.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#7B6E19
Tritanopia (blue-blind)
#89615A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e6a12;
/* rgb */ color: rgb(126, 106, 18);
/* oklch */ color: oklch(52.8% 0.102 95.0);
Tailwind
colors: {
  custom: {
    50: '#a7945a',
    500: '#7e6a12',
    950: '#000000',
  },
}
SCSS
$custom: #7e6a12;
$custom-light: #a7945a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6a12",
  "rgb": {
    "r": 126,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 48.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52847,
    "c": 0.10236,
    "h": 95
  },
  "luminance": 0.14787
}

Semantic roles & 50–950 ramp

primary
#7E6A12
secondary
#384FB4
accent
#59F236
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E6A12

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

Preview Lab → · Contrast checker → · Palette generator →

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