#7E891A#7E891A

#7E891A is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.128 H 115.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E891A
RGBrgb(126, 137, 26)
HSLhsl(66, 68%, 32%)
HSVhsv(66, 81%, 54%)
CMYKcmyk(8%, 0%, 81%, 46.3%)
CIE-LABlab(54.45, -17.94, 53.01)
CIE-LCHlch(54.45, 55.96, 108.70°)
OKLaboklab(60.12% -0.055 0.1155)
OKLCHoklch(60.12% 0.128 115.5)
XYZxyz(17.7368, 22.4018, 4.3667)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E891A #251A89
analogous
#895D1A #7E891A #47891A
triadic
#7E891A #1A7E89 #891A7E
tetradic
#7E891A #1A895D #251A89 #891A47
square
#7E891A #1A895D #251A89 #891A47
split-complementary
#7E891A #1A4789 #5D1A89
monochromatic
#1F2206 #4F5610 #7E891A #ADBC24 #CCDB42

Accessibility & contrast

On white

3.83
#7E891A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7E891A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E891A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E891A#FFFFFF#000000##000000
##7E891A1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#878175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e891a;
/* rgb */ color: rgb(126, 137, 26);
/* oklch */ color: oklch(60.1% 0.128 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ab62',
    500: '#7e891a',
    950: '#000000',
  },
}
SCSS
$custom: #7e891a;
$custom-light: #a7ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e891a",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 26
  },
  "hsl": {
    "h": 65.946,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.6012,
    "c": 0.12794,
    "h": 115.5
  },
  "luminance": 0.22402
}

Semantic roles & 50–950 ramp

primary
#7E891A
secondary
#4F43BC
accent
#3DEB4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7E891A

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

Preview Lab → · Contrast checker → · Palette generator →

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