#7E8B16#7E8B16

#7E8B16 is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.132 H 116.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E8B16
RGBrgb(126, 139, 22)
HSLhsl(67, 73%, 32%)
HSVhsv(67, 84%, 55%)
CMYKcmyk(9.4%, 0%, 84.2%, 45.5%)
CIE-LABlab(55.03, -19.13, 54.66)
CIE-LCHlch(55.03, 57.91, 109.29°)
OKLaboklab(60.58% -0.0586 0.1183)
OKLCHoklch(60.58% 0.132 116.3)
XYZxyz(17.9821, 22.9591, 4.2432)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B16 #23168B
analogous
#8B5E16 #7E8B16 #448B16
triadic
#7E8B16 #167E8B #8B167E
tetradic
#7E8B16 #168B5E #23168B #8B1644
square
#7E8B16 #168B5E #23168B #8B1644
split-complementary
#7E8B16 #16448B #5E168B
monochromatic
#1E2105 #4E560E #7E8B16 #AEC01E #CEE03B

Accessibility & contrast

On white

3.76
#7E8B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7E8B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B16
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B16#FFFFFF#000000##000000
##7E8B161.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948422
Tritanopia (blue-blind)
#878376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b16;
/* rgb */ color: rgb(126, 139, 22);
/* oklch */ color: oklch(60.6% 0.132 116.3);
Tailwind
colors: {
  custom: {
    50: '#a7ac60',
    500: '#7e8b16',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b16;
$custom-light: #a7ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b16",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 66.667,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.6058,
    "c": 0.13204,
    "h": 116.3
  },
  "luminance": 0.22959
}

Semantic roles & 50–950 ramp

primary
#7E8B16
secondary
#4C3EBF
accent
#38EF4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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