#7E6815#7E6815

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

Color values

HEX#7E6815
RGBrgb(126, 104, 21)
HSLhsl(47, 71%, 29%)
HSVhsv(47, 83%, 49%)
CMYKcmyk(0%, 17.5%, 83.3%, 50.6%)
CIE-LABlab(44.79, 0.08, 46.02)
CIE-LCHlch(44.79, 46.02, 89.90°)
OKLaboklab(52.41% -0.0051 0.0995)
OKLCHoklch(52.41% 0.1 92.9)
XYZxyz(13.6907, 14.3912, 2.7660)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6815 #152B7E
analogous
#7E3415 #7E6815 #607E15
triadic
#7E6815 #157E68 #68157E
tetradic
#7E6815 #157E34 #152B7E #7E1560
square
#7E6815 #157E34 #152B7E #7E1560
split-complementary
#7E6815 #15607E #34157E
monochromatic
#1A1604 #4A3D0C #7E6815 #B2931E #DDB931

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E6815#FFFFFF#000000##FFFFFF
##7E68151.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)
#746601
Deuteranopia (green-blind)
#7A6D1B
Tritanopia (blue-blind)
#895F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6815;
/* rgb */ color: rgb(126, 104, 21);
/* oklch */ color: oklch(52.4% 0.100 92.9);
Tailwind
colors: {
  custom: {
    50: '#a7925b',
    500: '#7e6815',
    950: '#000000',
  },
}
SCSS
$custom: #7e6815;
$custom-light: #a7925b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6815",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 47.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52414,
    "c": 0.09962,
    "h": 92.9
  },
  "luminance": 0.1439
}

Semantic roles & 50–950 ramp

primary
#7E6815
secondary
#3C55B3
accent
#5FEE3A
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7E6815

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

Preview Lab → · Contrast checker → · Palette generator →

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