#7E6512#7E6512

#7E6512 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.7% C 0.099 H 90.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E6512
RGBrgb(126, 101, 18)
HSLhsl(46, 75%, 28%)
HSVhsv(46, 86%, 49%)
CMYKcmyk(0%, 19.8%, 85.7%, 50.6%)
CIE-LABlab(43.93, 1.72, 46.26)
CIE-LCHlch(43.93, 46.29, 87.87°)
OKLaboklab(51.73% -0.0007 0.0993)
OKLCHoklch(51.73% 0.099 90.4)
XYZxyz(13.3679, 13.7875, 2.5293)
Luminance0.1379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6512 #122B7E
analogous
#7E2F12 #7E6512 #617E12
triadic
#7E6512 #127E65 #65127E
tetradic
#7E6512 #127E2F #122B7E #7E1261
square
#7E6512 #127E2F #122B7E #7E1261
split-complementary
#7E6512 #12617E #2F127E
monochromatic
#1B1504 #483A0A #7E6512 #B4901A #E1B62A

Accessibility & contrast

On white

5.59
#7E6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7E6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6512
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6512#FFFFFF#000000##FFFFFF
##7E65121.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#786B18
Tritanopia (blue-blind)
#895B56
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e6512;
/* rgb */ color: rgb(126, 101, 18);
/* oklch */ color: oklch(51.7% 0.099 90.4);
Tailwind
colors: {
  custom: {
    50: '#a79059',
    500: '#7e6512',
    950: '#000000',
  },
}
SCSS
$custom: #7e6512;
$custom-light: #a79059;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6512",
  "rgb": {
    "r": 126,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 46.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51729,
    "c": 0.09932,
    "h": 90.4
  },
  "luminance": 0.13787
}

Semantic roles & 50–950 ramp

primary
#7E6512
secondary
#3855B4
accent
#62F236
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7E6512

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

Preview Lab → · Contrast checker → · Palette generator →

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