#7E6811#7E6811

#7E6811 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.4% C 0.102 H 93.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E6811
RGBrgb(126, 104, 17)
HSLhsl(48, 76%, 28%)
HSVhsv(48, 87%, 49%)
CMYKcmyk(0%, 17.5%, 86.5%, 50.6%)
CIE-LABlab(44.77, -0.06, 47.29)
CIE-LCHlch(44.77, 47.29, 90.07°)
OKLaboklab(52.39% -0.0058 0.1014)
OKLCHoklch(52.39% 0.102 93.3)
XYZxyz(13.6565, 14.3776, 2.5861)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6811 #11277E
analogous
#7E3111 #7E6811 #5D7E11
triadic
#7E6811 #117E68 #68117E
tetradic
#7E6811 #117E31 #11277E #7E115D
square
#7E6811 #117E31 #11277E #7E115D
split-complementary
#7E6811 #115D7E #31117E
monochromatic
#1B1604 #483B0A #7E6811 #B49518 #E2BC27

Accessibility & contrast

On white

5.42
#7E6811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E6811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E6811
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6811#FFFFFF#000000##FFFFFF
##7E68111.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#7A6D18
Tritanopia (blue-blind)
#895F58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6811;
/* rgb */ color: rgb(126, 104, 17);
/* oklch */ color: oklch(52.4% 0.102 93.3);
Tailwind
colors: {
  custom: {
    50: '#a79259',
    500: '#7e6811',
    950: '#000000',
  },
}
SCSS
$custom: #7e6811;
$custom-light: #a79259;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6811",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 47.89,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.10152,
    "h": 93.3
  },
  "luminance": 0.14377
}

Semantic roles & 50–950 ramp

primary
#7E6811
secondary
#3750B4
accent
#5BF335
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7E6811

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

Preview Lab → · Contrast checker → · Palette generator →

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