#7E8F16#7E8F16

#7E8F16 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.137 H 118.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7E8F16
RGBrgb(126, 143, 22)
HSLhsl(68, 73%, 32%)
HSVhsv(68, 85%, 56%)
CMYKcmyk(11.9%, 0%, 84.6%, 43.9%)
CIE-LABlab(56.23, -21.18, 55.69)
CIE-LCHlch(56.23, 59.58, 110.82°)
OKLaboklab(61.54% -0.0642 0.1206)
OKLCHoklch(61.54% 0.137 118)
XYZxyz(18.5719, 24.1387, 4.4398)
Luminance0.2414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8F16 #27168F
analogous
#8F6416 #7E8F16 #418F16
triadic
#7E8F16 #167E8F #8F167E
tetradic
#7E8F16 #168F64 #27168F #8F1641
square
#7E8F16 #168F64 #27168F #8F1641
split-complementary
#7E8F16 #16418F #64168F
monochromatic
#212506 #4F5A0E #7E8F16 #ADC41E #CAE13E

Accessibility & contrast

On white

3.60
#7E8F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#7E8F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8F16
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8F16#FFFFFF#000000##000000
##7E8F161.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#86877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7e8f16;
/* rgb */ color: rgb(126, 143, 22);
/* oklch */ color: oklch(61.5% 0.137 118.0);
Tailwind
colors: {
  custom: {
    50: '#a7af61',
    500: '#7e8f16',
    950: '#000000',
  },
}
SCSS
$custom: #7e8f16;
$custom-light: #a7af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8f16",
  "rgb": {
    "r": 126,
    "g": 143,
    "b": 22
  },
  "hsl": {
    "h": 68.43,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61542,
    "c": 0.13658,
    "h": 118
  },
  "luminance": 0.24138
}

Semantic roles & 50–950 ramp

primary
#7E8F16
secondary
#523FC1
accent
#38F052
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8F16

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

Preview Lab → · Contrast checker → · Palette generator →

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