#7E891B#7E891B

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

Color values

HEX#7E891B
RGBrgb(126, 137, 27)
HSLhsl(66, 67%, 32%)
HSVhsv(66, 80%, 54%)
CMYKcmyk(8%, 0%, 80.3%, 46.3%)
CIE-LABlab(54.46, -17.90, 52.70)
CIE-LCHlch(54.46, 55.66, 108.76°)
OKLaboklab(60.12% -0.0548 0.1151)
OKLCHoklch(60.12% 0.127 115.5)
XYZxyz(17.7482, 22.4064, 4.4266)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E891B #261B89
analogous
#895D1B #7E891B #47891B
triadic
#7E891B #1B7E89 #891B7E
tetradic
#7E891B #1B895D #261B89 #891B47
square
#7E891B #1B895D #261B89 #891B47
split-complementary
#7E891B #1B4789 #5D1B89
monochromatic
#202307 #4F5611 #7E891B #ADBC25 #CBDA44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E891B#FFFFFF#000000##000000
##7E891B1.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: #7e891b;
/* rgb */ color: rgb(126, 137, 27);
/* oklch */ color: oklch(60.1% 0.127 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ab62',
    500: '#7e891b',
    950: '#000000',
  },
}
SCSS
$custom: #7e891b;
$custom-light: #a7ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e891b",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 66,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60125,
    "c": 0.12744,
    "h": 115.5
  },
  "luminance": 0.22406
}

Semantic roles & 50–950 ramp

primary
#7E891B
secondary
#5044BC
accent
#3EEA4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E891B

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

Preview Lab → · Contrast checker → · Palette generator →

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