#7E8D1E#7E8D1E

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

Color values

HEX#7E8D1E
RGBrgb(126, 141, 30)
HSLhsl(68, 65%, 34%)
HSVhsv(68, 79%, 55%)
CMYKcmyk(10.6%, 0%, 78.7%, 44.7%)
CIE-LABlab(55.66, -19.84, 52.85)
CIE-LCHlch(55.66, 56.45, 110.58°)
OKLaboklab(61.1% -0.0599 0.1159)
OKLCHoklch(61.1% 0.13 117.3)
XYZxyz(18.3639, 23.5793, 4.8119)
Luminance0.2358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D1E #2D1E8D
analogous
#8D641E #7E8D1E #468D1E
triadic
#7E8D1E #1E7E8D #8D1E7E
tetradic
#7E8D1E #1E8D64 #2D1E8D #8D1E46
square
#7E8D1E #1E8D64 #2D1E8D #8D1E46
split-complementary
#7E8D1E #1E468D #641E8D
monochromatic
#242809 #515B13 #7E8D1E #ABBF29 #C6D94C

Accessibility & contrast

On white

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

On black

5.72
#7E8D1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D1E
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D1E#FFFFFF#000000##000000
##7E8D1E1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.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: #7e8d1e;
/* rgb */ color: rgb(126, 141, 30);
/* oklch */ color: oklch(61.1% 0.130 117.3);
Tailwind
colors: {
  custom: {
    50: '#a7ae64',
    500: '#7e8d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d1e;
$custom-light: #a7ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d1e",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 68.108,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61101,
    "c": 0.13049,
    "h": 117.3
  },
  "luminance": 0.23579
}

Semantic roles & 50–950 ramp

primary
#7E8D1E
secondary
#5A4BBC
accent
#40E857
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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