#7E7916#7E7916

#7E7916 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.113 H 106.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E7916
RGBrgb(126, 121, 22)
HSLhsl(57, 70%, 29%)
HSVhsv(57, 83%, 49%)
CMYKcmyk(0%, 4%, 82.5%, 50.6%)
CIE-LABlab(49.70, -9.51, 50.02)
CIE-LCHlch(49.70, 50.92, 100.76°)
OKLaboklab(56.31% -0.0319 0.1083)
OKLCHoklch(56.31% 0.113 106.4)
XYZxyz(15.5870, 18.1689, 3.4448)
Luminance0.1817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7916 #161B7E
analogous
#7E4516 #7E7916 #4F7E16
triadic
#7E7916 #167E79 #79167E
tetradic
#7E7916 #167E45 #161B7E #7E164F
square
#7E7916 #167E45 #161B7E #7E164F
split-complementary
#7E7916 #164F7E #45167E
monochromatic
#1A1905 #4A470D #7E7916 #B2AB1F #DBD333

Accessibility & contrast

On white

4.53
#7E7916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E7916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7916
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7916#FFFFFF#000000##000000
##7E79161.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7916;
/* rgb */ color: rgb(126, 121, 22);
/* oklch */ color: oklch(56.3% 0.113 106.4);
Tailwind
colors: {
  custom: {
    50: '#a79f5e',
    500: '#7e7916',
    950: '#000000',
  },
}
SCSS
$custom: #7e7916;
$custom-light: #a79f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7916",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 57.115,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56313,
    "c": 0.11295,
    "h": 106.4
  },
  "luminance": 0.18168
}

Semantic roles & 50–950 ramp

primary
#7E7916
secondary
#3D43B3
accent
#43ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7916

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

Preview Lab → · Contrast checker → · Palette generator →

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