#7E8A1B#7E8A1B

#7E8A1B is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.129 H 115.9°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E8A1B
RGBrgb(126, 138, 27)
HSLhsl(66, 67%, 32%)
HSVhsv(66, 80%, 54%)
CMYKcmyk(8.7%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.75, -18.42, 52.97)
CIE-LCHlch(54.75, 56.09, 109.18°)
OKLaboklab(60.37% -0.0563 0.1156)
OKLCHoklch(60.37% 0.129 115.9)
XYZxyz(17.8910, 22.6920, 4.4742)
Luminance0.2269 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A1B #271B8A
analogous
#8A5E1B #7E8A1B #478A1B
triadic
#7E8A1B #1B7E8A #8A1B7E
tetradic
#7E8A1B #1B8A5E #271B8A #8A1B47
square
#7E8A1B #1B8A5E #271B8A #8A1B47
split-complementary
#7E8A1B #1B478A #5E1B8A
monochromatic
#212407 #4F5711 #7E8A1B #ADBD25 #CADB45

Accessibility & contrast

On white

3.79
#7E8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7E8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A1B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A1B#FFFFFF#000000##000000
##7E8A1B1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a1b;
/* rgb */ color: rgb(126, 138, 27);
/* oklch */ color: oklch(60.4% 0.129 115.9);
Tailwind
colors: {
  custom: {
    50: '#a7ac62',
    500: '#7e8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a1b;
$custom-light: #a7ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a1b",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 66.486,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60365,
    "c": 0.12858,
    "h": 115.9
  },
  "luminance": 0.22692
}

Semantic roles & 50–950 ramp

primary
#7E8A1B
secondary
#5245BC
accent
#3EEA50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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