#7E8E1D#7E8E1D

#7E8E1D is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.132 H 117.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7E8E1D
RGBrgb(126, 142, 29)
HSLhsl(68, 66%, 34%)
HSVhsv(68, 80%, 56%)
CMYKcmyk(11.3%, 0%, 79.6%, 44.3%)
CIE-LABlab(55.96, -20.40, 53.44)
CIE-LCHlch(55.96, 57.20, 110.89°)
OKLaboklab(61.34% -0.0615 0.117)
OKLCHoklch(61.34% 0.132 117.8)
XYZxyz(18.4994, 23.8705, 4.7951)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1D #2D1D8E
analogous
#8E651D #7E8E1D #458E1D
triadic
#7E8E1D #1D7E8E #8E1D7E
tetradic
#7E8E1D #1D8E65 #2D1D8E #8E1D45
square
#7E8E1D #1D8E65 #2D1D8E #8E1D45
split-complementary
#7E8E1D #1D458E #651D8E
monochromatic
#242808 #515B13 #7E8E1D #ABC127 #C6DA4B

Accessibility & contrast

On white

3.64
#7E8E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#7E8E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E1D
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E1D#FFFFFF#000000##000000
##7E8E1D1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968728
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1d;
/* rgb */ color: rgb(126, 142, 29);
/* oklch */ color: oklch(61.3% 0.132 117.8);
Tailwind
colors: {
  custom: {
    50: '#a7af64',
    500: '#7e8e1d',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1d;
$custom-light: #a7af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1d",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 68.496,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61336,
    "c": 0.13218,
    "h": 117.8
  },
  "luminance": 0.2387
}

Semantic roles & 50–950 ramp

primary
#7E8E1D
secondary
#5A4ABD
accent
#3FE957
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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