#7E841E#7E841E

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

Color values

HEX#7E841E
RGBrgb(126, 132, 30)
HSLhsl(64, 63%, 32%)
HSVhsv(64, 77%, 52%)
CMYKcmyk(4.5%, 0%, 77.3%, 48.2%)
CIE-LABlab(52.98, -15.14, 50.37)
CIE-LCHlch(52.98, 52.60, 106.73°)
OKLaboklab(58.95% -0.0469 0.1107)
OKLCHoklch(58.95% 0.12 113)
XYZxyz(17.0903, 21.0323, 4.3874)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E841E #241E84
analogous
#84571E #7E841E #4B841E
triadic
#7E841E #1E7E84 #841E7E
tetradic
#7E841E #1E8457 #241E84 #841E4B
square
#7E841E #1E8457 #241E84 #841E4B
split-complementary
#7E841E #1E4B84 #571E84
monochromatic
#1F2007 #4E5213 #7E841E #AEB629 #CDD547

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E841E#FFFFFF#000000##000000
##7E841E1.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)
#8E7D06
Deuteranopia (green-blind)
#8E8027
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e841e;
/* rgb */ color: rgb(126, 132, 30);
/* oklch */ color: oklch(59.0% 0.120 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a763',
    500: '#7e841e',
    950: '#000000',
  },
}
SCSS
$custom: #7e841e;
$custom-light: #a7a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7e841e",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 30
  },
  "hsl": {
    "h": 63.529,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58951,
    "c": 0.1202,
    "h": 113
  },
  "luminance": 0.21032
}

Semantic roles & 50–950 ramp

primary
#7E841E
secondary
#4E47B7
accent
#42E64B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E841E

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

Preview Lab → · Contrast checker → · Palette generator →

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