#7E8D15#7E8D15

#7E8D15 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.1% C 0.135 H 117.2°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E8D15
RGBrgb(126, 141, 21)
HSLhsl(68, 74%, 32%)
HSVhsv(68, 85%, 55%)
CMYKcmyk(10.6%, 0%, 85.1%, 44.7%)
CIE-LABlab(55.62, -20.19, 55.43)
CIE-LCHlch(55.62, 58.99, 110.01°)
OKLaboklab(61.06% -0.0616 0.1198)
OKLCHoklch(61.06% 0.135 117.2)
XYZxyz(18.2649, 23.5397, 4.2908)
Luminance0.2354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D15 #24158D
analogous
#8D6015 #7E8D15 #428D15
triadic
#7E8D15 #157E8D #8D157E
tetradic
#7E8D15 #158D60 #24158D #8D1542
square
#7E8D15 #158D60 #24158D #8D1542
split-complementary
#7E8D15 #15428D #60158D
monochromatic
#1F2205 #4E580D #7E8D15 #AEC21D #CDE23B

Accessibility & contrast

On white

3.68
#7E8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7E8D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D15
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D15#FFFFFF#000000##000000
##7E8D151.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d15;
/* rgb */ color: rgb(126, 141, 21);
/* oklch */ color: oklch(61.1% 0.135 117.2);
Tailwind
colors: {
  custom: {
    50: '#a7ae60',
    500: '#7e8d15',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d15;
$custom-light: #a7ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d15",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 67.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61056,
    "c": 0.1347,
    "h": 117.2
  },
  "luminance": 0.2354
}

Semantic roles & 50–950 ramp

primary
#7E8D15
secondary
#4E3DC1
accent
#37F14E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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