#7E8E16#7E8E16

#7E8E16 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.3% C 0.135 H 117.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E16
RGBrgb(126, 142, 22)
HSLhsl(68, 73%, 32%)
HSVhsv(68, 85%, 56%)
CMYKcmyk(11.3%, 0%, 84.5%, 44.3%)
CIE-LABlab(55.93, -20.67, 55.43)
CIE-LCHlch(55.93, 59.16, 110.45°)
OKLaboklab(61.3% -0.0628 0.12)
OKLCHoklch(61.3% 0.135 117.6)
XYZxyz(18.4225, 23.8398, 4.3899)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E16 #26168E
analogous
#8E6216 #7E8E16 #428E16
triadic
#7E8E16 #167E8E #8E167E
tetradic
#7E8E16 #168E62 #26168E #8E1642
square
#7E8E16 #168E62 #26168E #8E1642
split-complementary
#7E8E16 #16428E #62168E
monochromatic
#202406 #4F590E #7E8E16 #ADC31E #CBE13D

Accessibility & contrast

On white

3.64
#7E8E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E16
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E16#FFFFFF#000000##000000
##7E8E161.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e16;
/* rgb */ color: rgb(126, 142, 22);
/* oklch */ color: oklch(61.3% 0.135 117.6);
Tailwind
colors: {
  custom: {
    50: '#a7af61',
    500: '#7e8e16',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e16;
$custom-light: #a7af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e16",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 68,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61301,
    "c": 0.13544,
    "h": 117.6
  },
  "luminance": 0.2384
}

Semantic roles & 50–950 ramp

primary
#7E8E16
secondary
#503FC1
accent
#38F050
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8E16

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

Preview Lab → · Contrast checker → · Palette generator →

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