#7E8B1B#7E8B1B

#7E8B1B 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#7E8B1B
RGBrgb(126, 139, 27)
HSLhsl(67, 67%, 33%)
HSVhsv(67, 81%, 55%)
CMYKcmyk(9.4%, 0%, 80.6%, 45.5%)
CIE-LABlab(55.05, -18.94, 53.24)
CIE-LCHlch(55.05, 56.51, 109.58°)
OKLaboklab(60.61% -0.0577 0.1162)
OKLCHoklch(60.61% 0.13 116.4)
XYZxyz(18.0351, 22.9802, 4.5223)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1B #281B8B
analogous
#8B601B #7E8B1B #468B1B
triadic
#7E8B1B #1B7E8B #8B1B7E
tetradic
#7E8B1B #1B8B60 #281B8B #8B1B46
square
#7E8B1B #1B8B60 #281B8B #8B1B46
split-complementary
#7E8B1B #1B468B #601B8B
monochromatic
#212507 #505811 #7E8B1B #ACBE25 #CADB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8B1B#FFFFFF#000000##000000
##7E8B1B1.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)
#948426
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b1b;
/* rgb */ color: rgb(126, 139, 27);
/* oklch */ color: oklch(60.6% 0.130 116.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac62',
    500: '#7e8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1b;
$custom-light: #a7ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1b",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 66.964,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60605,
    "c": 0.12973,
    "h": 116.4
  },
  "luminance": 0.2298
}

Semantic roles & 50–950 ramp

primary
#7E8B1B
secondary
#5345BC
accent
#3DEA52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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