#7E8D1D#7E8D1D

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

Color values

HEX#7E8D1D
RGBrgb(126, 141, 29)
HSLhsl(68, 66%, 33%)
HSVhsv(68, 79%, 55%)
CMYKcmyk(10.6%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.66, -19.89, 53.17)
CIE-LCHlch(55.66, 56.76, 110.51°)
OKLaboklab(61.1% -0.0601 0.1164)
OKLCHoklch(61.1% 0.131 117.3)
XYZxyz(18.3513, 23.5743, 4.7457)
Luminance0.2357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D1D #2C1D8D
analogous
#8D641D #7E8D1D #468D1D
triadic
#7E8D1D #1D7E8D #8D1D7E
tetradic
#7E8D1D #1D8D64 #2C1D8D #8D1D46
square
#7E8D1D #1D8D64 #2C1D8D #8D1D46
split-complementary
#7E8D1D #1D468D #641D8D
monochromatic
#232708 #515A13 #7E8D1D #ABC027 #C7DA4B

Accessibility & contrast

On white

3.67
#7E8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8D1D#FFFFFF#000000##000000
##7E8D1D1.003.675.715.71
#FFFFFF3.671.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e8d1d;
/* rgb */ color: rgb(126, 141, 29);
/* oklch */ color: oklch(61.1% 0.131 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae63',
    500: '#7e8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d1d;
$custom-light: #a7ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d1d",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 68.036,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61096,
    "c": 0.13102,
    "h": 117.3
  },
  "luminance": 0.23574
}

Semantic roles & 50–950 ramp

primary
#7E8D1D
secondary
#594ABC
accent
#3FE956
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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