#7E7816#7E7816

#7E7816 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.112 H 105.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E7816
RGBrgb(126, 120, 22)
HSLhsl(57, 70%, 29%)
HSVhsv(57, 83%, 49%)
CMYKcmyk(0%, 4.8%, 82.5%, 50.6%)
CIE-LABlab(49.41, -8.96, 49.76)
CIE-LCHlch(49.41, 50.56, 100.20°)
OKLaboklab(56.08% -0.0304 0.1078)
OKLCHoklch(56.08% 0.112 105.8)
XYZxyz(15.4662, 17.9271, 3.4045)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7816 #161C7E
analogous
#7E4416 #7E7816 #507E16
triadic
#7E7816 #167E78 #78167E
tetradic
#7E7816 #167E44 #161C7E #7E1650
square
#7E7816 #167E44 #161C7E #7E1650
split-complementary
#7E7816 #16507E #44167E
monochromatic
#1A1905 #4A460D #7E7816 #B2AA1F #DBD233

Accessibility & contrast

On white

4.58
#7E7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7E7816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7816
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7816#FFFFFF#000000##000000
##7E78161.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7816;
/* rgb */ color: rgb(126, 120, 22);
/* oklch */ color: oklch(56.1% 0.112 105.8);
Tailwind
colors: {
  custom: {
    50: '#a79e5e',
    500: '#7e7816',
    950: '#000000',
  },
}
SCSS
$custom: #7e7816;
$custom-light: #a79e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7816",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 56.538,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56079,
    "c": 0.112,
    "h": 105.8
  },
  "luminance": 0.17926
}

Semantic roles & 50–950 ramp

primary
#7E7816
secondary
#3D44B3
accent
#45ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7816

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

Preview Lab → · Contrast checker → · Palette generator →

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