#7E8115#7E8115

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

Color values

HEX#7E8115
RGBrgb(126, 129, 21)
HSLhsl(62, 72%, 29%)
HSVhsv(62, 84%, 51%)
CMYKcmyk(2.3%, 0%, 83.7%, 49.4%)
CIE-LABlab(52.05, -13.90, 52.36)
CIE-LCHlch(52.05, 54.17, 104.86°)
OKLaboklab(58.19% -0.0442 0.1132)
OKLCHoklch(58.19% 0.122 111.3)
XYZxyz(16.5904, 20.1907, 3.7326)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8115 #181581
analogous
#814E15 #7E8115 #488115
triadic
#7E8115 #157E81 #81157E
tetradic
#7E8115 #15814E #181581 #811548
square
#7E8115 #15814E #181581 #811548
split-complementary
#7E8115 #154881 #4E1581
monochromatic
#1A1A04 #4B4C0C #7E8115 #B1B61E #D9DE33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8115#FFFFFF#000000##000000
##7E81151.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)
#8C7D20
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8115;
/* rgb */ color: rgb(126, 129, 21);
/* oklch */ color: oklch(58.2% 0.122 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a55e',
    500: '#7e8115',
    950: '#000000',
  },
}
SCSS
$custom: #7e8115;
$custom-light: #a7a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8115",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 61.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5819,
    "c": 0.12152,
    "h": 111.3
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#7E8115
secondary
#3F3CB6
accent
#39EF3E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8115

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

Preview Lab → · Contrast checker → · Palette generator →

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