#7E8E1A#7E8E1A

#7E8E1A is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.134 H 117.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E1A
RGBrgb(126, 142, 26)
HSLhsl(68, 69%, 33%)
HSVhsv(68, 82%, 56%)
CMYKcmyk(11.3%, 0%, 81.7%, 44.3%)
CIE-LABlab(55.94, -20.52, 54.34)
CIE-LCHlch(55.94, 58.09, 110.69°)
OKLaboklab(61.32% -0.0621 0.1184)
OKLCHoklch(61.32% 0.134 117.7)
XYZxyz(18.4641, 23.8564, 4.6091)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1A #2A1A8E
analogous
#8E641A #7E8E1A #448E1A
triadic
#7E8E1A #1A7E8E #8E1A7E
tetradic
#7E8E1A #1A8E64 #2A1A8E #8E1A44
square
#7E8E1A #1A8E64 #2A1A8E #8E1A44
split-complementary
#7E8E1A #1A448E #641A8E
monochromatic
#222707 #505A11 #7E8E1A #ACC223 #C8DD45

Accessibility & contrast

On white

3.64
#7E8E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E1A
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E1A#FFFFFF#000000##000000
##7E8E1A1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968726
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1a;
/* rgb */ color: rgb(126, 142, 26);
/* oklch */ color: oklch(61.3% 0.134 117.7);
Tailwind
colors: {
  custom: {
    50: '#a7af62',
    500: '#7e8e1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1a;
$custom-light: #a7af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1a",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 68.276,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.6132,
    "c": 0.13366,
    "h": 117.7
  },
  "luminance": 0.23856
}

Semantic roles & 50–950 ramp

primary
#7E8E1A
secondary
#5645BE
accent
#3CEC54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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