#7E841D#7E841D

#7E841D is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.121 H 113.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7E841D
RGBrgb(126, 132, 29)
HSLhsl(63, 64%, 32%)
HSVhsv(63, 78%, 52%)
CMYKcmyk(4.5%, 0%, 78%, 48.2%)
CIE-LABlab(52.98, -15.18, 50.71)
CIE-LCHlch(52.98, 52.93, 106.67°)
OKLaboklab(58.95% -0.0471 0.1112)
OKLCHoklch(58.95% 0.121 113)
XYZxyz(17.0778, 21.0272, 4.3212)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E841D #231D84
analogous
#84571D #7E841D #4B841D
triadic
#7E841D #1D7E84 #841D7E
tetradic
#7E841D #1D8457 #231D84 #841D4B
square
#7E841D #1D8457 #231D84 #841D4B
split-complementary
#7E841D #1D4B84 #571D84
monochromatic
#1E2007 #4E5212 #7E841D #AEB628 #CED645

Accessibility & contrast

On white

4.03
#7E841D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7E841D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E841D
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E841D#FFFFFF#000000##000000
##7E841D1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D03
Deuteranopia (green-blind)
#8E8026
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e841d;
/* rgb */ color: rgb(126, 132, 29);
/* oklch */ color: oklch(58.9% 0.121 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a762',
    500: '#7e841d',
    950: '#000000',
  },
}
SCSS
$custom: #7e841d;
$custom-light: #a7a762;
$custom-dark: #000000;
JSON
{
  "hex": "#7e841d",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 63.495,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58945,
    "c": 0.12077,
    "h": 113
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#7E841D
secondary
#4C46B7
accent
#41E74A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E841D

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

Preview Lab → · Contrast checker → · Palette generator →

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