#7E6816#7E6816

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

Color values

HEX#7E6816
RGBrgb(126, 104, 22)
HSLhsl(47, 70%, 29%)
HSVhsv(47, 83%, 49%)
CMYKcmyk(0%, 17.5%, 82.5%, 50.6%)
CIE-LABlab(44.79, 0.12, 45.67)
CIE-LCHlch(44.79, 45.67, 89.86°)
OKLaboklab(52.42% -0.0048 0.099)
OKLCHoklch(52.42% 0.099 92.8)
XYZxyz(13.7001, 14.3950, 2.8158)
Luminance0.1439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6816 #162C7E
analogous
#7E3416 #7E6816 #607E16
triadic
#7E6816 #167E68 #68167E
tetradic
#7E6816 #167E34 #162C7E #7E1660
square
#7E6816 #167E34 #162C7E #7E1660
split-complementary
#7E6816 #16607E #34167E
monochromatic
#1A1605 #4A3D0D #7E6816 #B2931F #DBB833

Accessibility & contrast

On white

5.41
#7E6816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E6816
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6816#FFFFFF#000000##FFFFFF
##7E68161.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#7A6D1B
Tritanopia (blue-blind)
#895F59
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e6816;
/* rgb */ color: rgb(126, 104, 22);
/* oklch */ color: oklch(52.4% 0.099 92.8);
Tailwind
colors: {
  custom: {
    50: '#a7925b',
    500: '#7e6816',
    950: '#000000',
  },
}
SCSS
$custom: #7e6816;
$custom-light: #a7925b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6816",
  "rgb": {
    "r": 126,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 47.308,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52419,
    "c": 0.0991,
    "h": 92.8
  },
  "luminance": 0.14394
}

Semantic roles & 50–950 ramp

primary
#7E6816
secondary
#3D56B3
accent
#60ED3B
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7E6816

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

Preview Lab → · Contrast checker → · Palette generator →

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