#7E8B1A#7E8B1A

#7E8B1A is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.130 H 116.4°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B1A
RGBrgb(126, 139, 26)
HSLhsl(67, 68%, 32%)
HSVhsv(67, 81%, 55%)
CMYKcmyk(9.4%, 0%, 81.3%, 45.5%)
CIE-LABlab(55.05, -18.98, 53.54)
CIE-LCHlch(55.05, 56.80, 109.52°)
OKLaboklab(60.6% -0.0579 0.1167)
OKLCHoklch(60.6% 0.13 116.4)
XYZxyz(18.0238, 22.9757, 4.4624)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1A #271A8B
analogous
#8B601A #7E8B1A #458B1A
triadic
#7E8B1A #1A7E8B #8B1A7E
tetradic
#7E8B1A #1A8B60 #271A8B #8B1A45
square
#7E8B1A #1A8B60 #271A8B #8B1A45
split-complementary
#7E8B1A #1A458B #601A8B
monochromatic
#212407 #4F5710 #7E8B1A #ADBF24 #CADC43

Accessibility & contrast

On white

3.75
#7E8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B1A
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B1A#FFFFFF#000000##000000
##7E8B1A1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#868376
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b1a;
/* rgb */ color: rgb(126, 139, 26);
/* oklch */ color: oklch(60.6% 0.130 116.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac62',
    500: '#7e8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1a;
$custom-light: #a7ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1a",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 66.903,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60599,
    "c": 0.13022,
    "h": 116.4
  },
  "luminance": 0.22975
}

Semantic roles & 50–950 ramp

primary
#7E8B1A
secondary
#5244BD
accent
#3CEB51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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