#7E8117#7E8117

#7E8117 is a mid, vivid yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.121 H 111.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E8117
RGBrgb(126, 129, 23)
HSLhsl(62, 70%, 30%)
HSVhsv(62, 82%, 51%)
CMYKcmyk(2.3%, 0%, 82.2%, 49.4%)
CIE-LABlab(52.06, -13.83, 51.79)
CIE-LCHlch(52.06, 53.61, 104.95°)
OKLaboklab(58.2% -0.0439 0.1124)
OKLCHoklch(58.2% 0.121 111.3)
XYZxyz(16.6097, 20.1984, 3.8342)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8117 #1A1781
analogous
#814F17 #7E8117 #498117
triadic
#7E8117 #177E81 #81177E
tetradic
#7E8117 #17814F #1A1781 #811749
square
#7E8117 #17814F #1A1781 #811749
split-complementary
#7E8117 #174981 #4F1781
monochromatic
#191A05 #4B4D0E #7E8117 #B1B520 #D7DB37

Accessibility & contrast

On white

4.17
#7E8117 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7E8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8117
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8117#FFFFFF#000000##000000
##7E81171.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D21
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8117;
/* rgb */ color: rgb(126, 129, 23);
/* oklch */ color: oklch(58.2% 0.121 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a55f',
    500: '#7e8117',
    950: '#000000',
  },
}
SCSS
$custom: #7e8117;
$custom-light: #a7a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8117",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 61.698,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.582,
    "c": 0.12061,
    "h": 111.3
  },
  "luminance": 0.20198
}

Semantic roles & 50–950 ramp

primary
#7E8117
secondary
#423EB5
accent
#3BED40
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8117

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

Preview Lab → · Contrast checker → · Palette generator →

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