#7E7216#7E7216

#7E7216 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.107 H 101.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7216
RGBrgb(126, 114, 22)
HSLhsl(53, 70%, 29%)
HSVhsv(53, 83%, 49%)
CMYKcmyk(0%, 9.5%, 82.5%, 50.6%)
CIE-LABlab(47.66, -5.61, 48.22)
CIE-LCHlch(47.66, 48.55, 96.63°)
OKLaboklab(54.69% -0.021 0.1045)
OKLCHoklch(54.69% 0.107 101.4)
XYZxyz(14.7670, 16.5289, 3.1715)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7216 #16227E
analogous
#7E3E16 #7E7216 #567E16
triadic
#7E7216 #167E72 #72167E
tetradic
#7E7216 #167E3E #16227E #7E1656
square
#7E7216 #167E3E #16227E #7E1656
split-complementary
#7E7216 #16567E #3E167E
monochromatic
#1A1805 #4A430D #7E7216 #B2A11F #DBC833

Accessibility & contrast

On white

4.88
#7E7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7216
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7216#FFFFFF#000000##FFFFFF
##7E72161.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#81731D
Tritanopia (blue-blind)
#886961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7216;
/* rgb */ color: rgb(126, 114, 22);
/* oklch */ color: oklch(54.7% 0.107 101.4);
Tailwind
colors: {
  custom: {
    50: '#a79a5d',
    500: '#7e7216',
    950: '#000000',
  },
}
SCSS
$custom: #7e7216;
$custom-light: #a79a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7216",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 53.077,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5469,
    "c": 0.10656,
    "h": 101.4
  },
  "luminance": 0.16528
}

Semantic roles & 50–950 ramp

primary
#7E7216
secondary
#3D4BB3
accent
#4FED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7216

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

Preview Lab → · Contrast checker → · Palette generator →

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