#7E6812#7E6812

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

Color values

HEX#7E6812
RGBrgb(126, 104, 18)
HSLhsl(48, 75%, 28%)
HSVhsv(48, 86%, 49%)
CMYKcmyk(0%, 17.5%, 85.7%, 50.6%)
CIE-LABlab(44.77, -0.03, 46.98)
CIE-LCHlch(44.77, 46.98, 90.03°)
OKLaboklab(52.4% -0.0056 0.1009)
OKLCHoklch(52.4% 0.101 93.2)
XYZxyz(13.6645, 14.3808, 2.6282)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6812 #12287E
analogous
#7E3212 #7E6812 #5E7E12
triadic
#7E6812 #127E68 #68127E
tetradic
#7E6812 #127E32 #12287E #7E125E
square
#7E6812 #127E32 #12287E #7E125E
split-complementary
#7E6812 #125E7E #32127E
monochromatic
#1B1604 #483C0A #7E6812 #B4941A #E1BB2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E6812#FFFFFF#000000##FFFFFF
##7E68121.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)
#746600
Deuteranopia (green-blind)
#7A6D18
Tritanopia (blue-blind)
#895F58
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6812;
/* rgb */ color: rgb(126, 104, 18);
/* oklch */ color: oklch(52.4% 0.101 93.2);
Tailwind
colors: {
  custom: {
    50: '#a7925a',
    500: '#7e6812',
    950: '#000000',
  },
}
SCSS
$custom: #7e6812;
$custom-light: #a7925a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6812",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 47.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52397,
    "c": 0.10107,
    "h": 93.2
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#7E6812
secondary
#3851B4
accent
#5CF236
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7E6812

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

Preview Lab → · Contrast checker → · Palette generator →

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