#7E8C16#7E8C16

#7E8C16 is a mid, vivid yellow. Relative luminance 0.233; OKLCH L 60.8% C 0.133 H 116.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7E8C16
RGBrgb(126, 140, 22)
HSLhsl(67, 73%, 32%)
HSVhsv(67, 84%, 55%)
CMYKcmyk(10%, 0%, 84.3%, 45.1%)
CIE-LABlab(55.33, -19.64, 54.92)
CIE-LCHlch(55.33, 58.32, 109.68°)
OKLaboklab(60.82% -0.06 0.1189)
OKLCHoklch(60.82% 0.133 116.8)
XYZxyz(18.1276, 23.2500, 4.2916)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8C16 #24168C
analogous
#8C5F16 #7E8C16 #438C16
triadic
#7E8C16 #167E8C #8C167E
tetradic
#7E8C16 #168C5F #24168C #8C1643
square
#7E8C16 #168C5F #24168C #8C1643
split-complementary
#7E8C16 #16438C #5F168C
monochromatic
#1F2205 #4E570E #7E8C16 #AEC11E #CDE03C

Accessibility & contrast

On white

3.72
#7E8C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#7E8C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8C16
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8C16#FFFFFF#000000##000000
##7E8C161.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#958523
Tritanopia (blue-blind)
#878477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8c16;
/* rgb */ color: rgb(126, 140, 22);
/* oklch */ color: oklch(60.8% 0.133 116.8);
Tailwind
colors: {
  custom: {
    50: '#a7ad61',
    500: '#7e8c16',
    950: '#000000',
  },
}
SCSS
$custom: #7e8c16;
$custom-light: #a7ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8c16",
  "rgb": {
    "r": 126,
    "g": 140,
    "b": 22
  },
  "hsl": {
    "h": 67.119,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.13316,
    "h": 116.8
  },
  "luminance": 0.2325
}

Semantic roles & 50–950 ramp

primary
#7E8C16
secondary
#4E3EC0
accent
#38F04E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8C16

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

Preview Lab → · Contrast checker → · Palette generator →

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