#7E8617#7E8617

#7E8617 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.4% C 0.126 H 114.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E8617
RGBrgb(126, 134, 23)
HSLhsl(64, 71%, 31%)
HSVhsv(64, 83%, 53%)
CMYKcmyk(6%, 0%, 82.8%, 47.5%)
CIE-LABlab(53.54, -16.48, 53.09)
CIE-LCHlch(53.54, 55.59, 107.25°)
OKLaboklab(59.39% -0.0512 0.1151)
OKLCHoklch(59.39% 0.126 114)
XYZxyz(17.2845, 21.5480, 4.0591)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8617 #1F1786
analogous
#865617 #7E8617 #468617
triadic
#7E8617 #177E86 #86177E
tetradic
#7E8617 #178656 #1F1786 #861746
square
#7E8617 #178656 #1F1786 #861746
split-complementary
#7E8617 #174686 #561786
monochromatic
#1C1E05 #4D520E #7E8617 #AFBA20 #D1DD3A

Accessibility & contrast

On white

3.96
#7E8617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7E8617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8617
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8617#FFFFFF#000000##000000
##7E86171.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#877D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e8617;
/* rgb */ color: rgb(126, 134, 23);
/* oklch */ color: oklch(59.4% 0.126 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a960',
    500: '#7e8617',
    950: '#000000',
  },
}
SCSS
$custom: #7e8617;
$custom-light: #a7a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8617",
  "rgb": {
    "r": 126,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 64.324,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59388,
    "c": 0.12602,
    "h": 114
  },
  "luminance": 0.21548
}

Semantic roles & 50–950 ramp

primary
#7E8617
secondary
#483FBA
accent
#3AED47
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E8617

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

Preview Lab → · Contrast checker → · Palette generator →

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