#7E7616#7E7616

#7E7616 is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.6% C 0.110 H 104.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7616
RGBrgb(126, 118, 22)
HSLhsl(55, 70%, 29%)
HSVhsv(55, 83%, 49%)
CMYKcmyk(0%, 6.3%, 82.5%, 50.6%)
CIE-LABlab(48.82, -7.85, 49.25)
CIE-LCHlch(48.82, 49.87, 99.05°)
OKLaboklab(55.61% -0.0273 0.1067)
OKLCHoklch(55.61% 0.11 104.4)
XYZxyz(15.2281, 17.4510, 3.3252)
Luminance0.1745 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7616 #161E7E
analogous
#7E4216 #7E7616 #527E16
triadic
#7E7616 #167E76 #76167E
tetradic
#7E7616 #167E42 #161E7E #7E1652
square
#7E7616 #167E42 #161E7E #7E1652
split-complementary
#7E7616 #16527E #42167E
monochromatic
#1A1805 #4A450D #7E7616 #B2A71F #DBCE33

Accessibility & contrast

On white

4.68
#7E7616 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7E7616 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7616
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7616#FFFFFF#000000##FFFFFF
##7E76161.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#84761E
Tritanopia (blue-blind)
#886D64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e7616;
/* rgb */ color: rgb(126, 118, 22);
/* oklch */ color: oklch(55.6% 0.110 104.4);
Tailwind
colors: {
  custom: {
    50: '#a79d5d',
    500: '#7e7616',
    950: '#000000',
  },
}
SCSS
$custom: #7e7616;
$custom-light: #a79d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7616",
  "rgb": {
    "r": 126,
    "g": 118,
    "b": 22
  },
  "hsl": {
    "h": 55.385,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.55614,
    "c": 0.11012,
    "h": 104.4
  },
  "luminance": 0.1745
}

Semantic roles & 50–950 ramp

primary
#7E7616
secondary
#3D46B3
accent
#48ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7616

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

Preview Lab → · Contrast checker → · Palette generator →

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