#7E841B#7E841B

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

Color values

HEX#7E841B
RGBrgb(126, 132, 27)
HSLhsl(63, 66%, 31%)
HSVhsv(63, 80%, 52%)
CMYKcmyk(4.5%, 0%, 79.5%, 48.2%)
CIE-LABlab(52.97, -15.27, 51.36)
CIE-LCHlch(52.97, 53.58, 106.56°)
OKLaboklab(58.93% -0.0475 0.1122)
OKLCHoklch(58.93% 0.122 113)
XYZxyz(17.0538, 21.0177, 4.1952)
Luminance0.2102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E841B #211B84
analogous
#84551B #7E841B #49841B
triadic
#7E841B #1B7E84 #841B7E
tetradic
#7E841B #1B8455 #211B84 #841B49
square
#7E841B #1B8455 #211B84 #841B49
split-complementary
#7E841B #1B4984 #551B84
monochromatic
#1D1E06 #4D5111 #7E841B #AEB725 #D0D841

Accessibility & contrast

On white

4.04
#7E841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7E841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E841B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E841B#FFFFFF#000000##000000
##7E841B1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e841b;
/* rgb */ color: rgb(126, 132, 27);
/* oklch */ color: oklch(58.9% 0.122 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a761',
    500: '#7e841b',
    950: '#000000',
  },
}
SCSS
$custom: #7e841b;
$custom-light: #a7a761;
$custom-dark: #000000;
JSON
{
  "hex": "#7e841b",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 63.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58933,
    "c": 0.12185,
    "h": 113
  },
  "luminance": 0.21017
}

Semantic roles & 50–950 ramp

primary
#7E841B
secondary
#4A43B7
accent
#3FE949
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7E841B

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

Preview Lab → · Contrast checker → · Palette generator →

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