#7E8D1B#7E8D1B

#7E8D1B is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.132 H 117.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7E8D1B
RGBrgb(126, 141, 27)
HSLhsl(68, 68%, 33%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(10.6%, 0%, 80.9%, 44.7%)
CIE-LABlab(55.65, -19.97, 53.78)
CIE-LCHlch(55.65, 57.37, 110.37°)
OKLaboklab(61.09% -0.0605 0.1173)
OKLCHoklch(61.09% 0.132 117.3)
XYZxyz(18.3274, 23.5647, 4.6197)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D1B #2A1B8D
analogous
#8D631B #7E8D1B #458D1B
triadic
#7E8D1B #1B7E8D #8D1B7E
tetradic
#7E8D1B #1B8D63 #2A1B8D #8D1B45
square
#7E8D1B #1B8D63 #2A1B8D #8D1B45
split-complementary
#7E8D1B #1B458D #631B8D
monochromatic
#222607 #505A11 #7E8D1B #ACC025 #C8DC47

Accessibility & contrast

On white

3.68
#7E8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7E8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D1B
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D1B#FFFFFF#000000##000000
##7E8D1B1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d1b;
/* rgb */ color: rgb(126, 141, 27);
/* oklch */ color: oklch(61.1% 0.132 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae63',
    500: '#7e8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d1b;
$custom-light: #a7ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d1b",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 67.895,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61085,
    "c": 0.13203,
    "h": 117.3
  },
  "luminance": 0.23565
}

Semantic roles & 50–950 ramp

primary
#7E8D1B
secondary
#5646BD
accent
#3DEB54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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