#7E7E16#7E7E16

#7E7E16 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.118 H 109.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7E16
RGBrgb(126, 126, 22)
HSLhsl(60, 70%, 29%)
HSVhsv(60, 83%, 49%)
CMYKcmyk(0%, 0%, 82.5%, 50.6%)
CIE-LABlab(51.17, -12.24, 51.31)
CIE-LCHlch(51.17, 52.75, 103.42°)
OKLaboklab(57.49% -0.0396 0.1111)
OKLCHoklch(57.49% 0.118 109.6)
XYZxyz(16.2105, 19.4158, 3.6526)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E16 #16167E
analogous
#7E4A16 #7E7E16 #4A7E16
triadic
#7E7E16 #167E7E #7E167E
tetradic
#7E7E16 #167E4A #16167E #7E164A
square
#7E7E16 #167E4A #16167E #7E164A
split-complementary
#7E7E16 #164A7E #4A167E
monochromatic
#1A1A05 #4A4A0D #7E7E16 #B2B21F #DBDB33

Accessibility & contrast

On white

4.30
#7E7E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7E7E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E16
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E16#FFFFFF#000000##000000
##7E7E161.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#88756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e16;
/* rgb */ color: rgb(126, 126, 22);
/* oklch */ color: oklch(57.5% 0.118 109.6);
Tailwind
colors: {
  custom: {
    50: '#a7a35e',
    500: '#7e7e16',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e16;
$custom-light: #a7a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e16",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57486,
    "c": 0.11795,
    "h": 109.6
  },
  "luminance": 0.19415
}

Semantic roles & 50–950 ramp

primary
#7E7E16
secondary
#3D3DB3
accent
#3BED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7E16

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

Preview Lab → · Contrast checker → · Palette generator →

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