#7E7A16#7E7A16

#7E7A16 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.114 H 107.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7A16
RGBrgb(126, 122, 22)
HSLhsl(58, 70%, 29%)
HSVhsv(58, 83%, 49%)
CMYKcmyk(0%, 3.2%, 82.5%, 50.6%)
CIE-LABlab(49.99, -10.06, 50.28)
CIE-LCHlch(49.99, 51.27, 101.31°)
OKLaboklab(56.55% -0.0335 0.1089)
OKLCHoklch(56.55% 0.114 107.1)
XYZxyz(15.7092, 18.4132, 3.4855)
Luminance0.1841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A16 #161A7E
analogous
#7E4616 #7E7A16 #4E7E16
triadic
#7E7A16 #167E7A #7A167E
tetradic
#7E7A16 #167E46 #161A7E #7E164E
square
#7E7A16 #167E46 #161A7E #7E164E
split-complementary
#7E7A16 #164E7E #46167E
monochromatic
#1A1905 #4A480D #7E7A16 #B2AC1F #DBD533

Accessibility & contrast

On white

4.48
#7E7A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E7A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A16
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A16#FFFFFF#000000##000000
##7E7A161.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#87791F
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e7a16;
/* rgb */ color: rgb(126, 122, 22);
/* oklch */ color: oklch(56.5% 0.114 107.1);
Tailwind
colors: {
  custom: {
    50: '#a7a05e',
    500: '#7e7a16',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a16;
$custom-light: #a7a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a16",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 57.692,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56547,
    "c": 0.11393,
    "h": 107.1
  },
  "luminance": 0.18413
}

Semantic roles & 50–950 ramp

primary
#7E7A16
secondary
#3D41B3
accent
#42ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7A16

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

Preview Lab → · Contrast checker → · Palette generator →

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