#7E8D1A#7E8D1A

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

Color values

HEX#7E8D1A
RGBrgb(126, 141, 26)
HSLhsl(68, 69%, 33%)
HSVhsv(68, 82%, 55%)
CMYKcmyk(10.6%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.64, -20.01, 54.07)
CIE-LCHlch(55.64, 57.66, 110.31°)
OKLaboklab(61.08% -0.0607 0.1178)
OKLCHoklch(61.08% 0.133 117.3)
XYZxyz(18.3160, 23.5602, 4.5598)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D1A #291A8D
analogous
#8D621A #7E8D1A #458D1A
triadic
#7E8D1A #1A7E8D #8D1A7E
tetradic
#7E8D1A #1A8D62 #291A8D #8D1A45
square
#7E8D1A #1A8D62 #291A8D #8D1A45
split-complementary
#7E8D1A #1A458D #621A8D
monochromatic
#222607 #505910 #7E8D1A #ACC124 #C9DD45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D1A#FFFFFF#000000##000000
##7E8D1A1.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)
#968626
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d1a;
/* rgb */ color: rgb(126, 141, 26);
/* oklch */ color: oklch(61.1% 0.133 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae62',
    500: '#7e8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d1a;
$custom-light: #a7ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d1a",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 67.826,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.6108,
    "c": 0.13251,
    "h": 117.3
  },
  "luminance": 0.2356
}

Semantic roles & 50–950 ramp

primary
#7E8D1A
secondary
#5545BE
accent
#3CEC53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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