#7E8718#7E8718

#7E8718 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.127 H 114.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E8718
RGBrgb(126, 135, 24)
HSLhsl(65, 70%, 31%)
HSVhsv(65, 82%, 53%)
CMYKcmyk(6.7%, 0%, 82.2%, 47.1%)
CIE-LABlab(53.85, -16.97, 53.07)
CIE-LCHlch(53.85, 55.72, 107.74°)
OKLaboklab(59.63% -0.0525 0.1153)
OKLCHoklch(59.63% 0.127 114.5)
XYZxyz(17.4336, 21.8299, 4.1592)
Luminance0.2183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8718 #211887
analogous
#875818 #7E8718 #468718
triadic
#7E8718 #187E87 #87187E
tetradic
#7E8718 #188758 #211887 #871846
square
#7E8718 #188758 #211887 #871846
split-complementary
#7E8718 #184687 #581887
monochromatic
#1D1F06 #4D530F #7E8718 #AEBB21 #D0DC3D

Accessibility & contrast

On white

3.91
#7E8718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#7E8718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8718
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8718#FFFFFF#000000##000000
##7E87181.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#877F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8718;
/* rgb */ color: rgb(126, 135, 24);
/* oklch */ color: oklch(59.6% 0.127 114.5);
Tailwind
colors: {
  custom: {
    50: '#a7a961',
    500: '#7e8718',
    950: '#000000',
  },
}
SCSS
$custom: #7e8718;
$custom-light: #a7a961;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8718",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 64.865,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59632,
    "c": 0.12666,
    "h": 114.5
  },
  "luminance": 0.2183
}

Semantic roles & 50–950 ramp

primary
#7E8718
secondary
#4A40BB
accent
#3BED4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E8718

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

Preview Lab → · Contrast checker → · Palette generator →

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