#7D841A#7D841A

#7D841A is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.123 H 113.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7D841A
RGBrgb(125, 132, 26)
HSLhsl(64, 67%, 31%)
HSVhsv(64, 80%, 52%)
CMYKcmyk(5.3%, 0%, 80.3%, 48.2%)
CIE-LABlab(52.88, -15.76, 51.57)
CIE-LCHlch(52.88, 53.93, 107.00°)
OKLaboklab(58.84% -0.0489 0.1125)
OKLCHoklch(58.84% 0.123 113.5)
XYZxyz(16.8957, 20.9374, 4.1284)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D841A #211A84
analogous
#84561A #7D841A #48841A
triadic
#7D841A #1A7D84 #841A7D
tetradic
#7D841A #1A8456 #211A84 #841A48
square
#7D841A #1A8456 #211A84 #841A48
split-complementary
#7D841A #1A4884 #561A84
monochromatic
#1C1E06 #4D5110 #7D841A #ADB724 #CFD93F

Accessibility & contrast

On white

4.05
#7D841A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7D841A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D841A
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D841A#FFFFFF#000000##000000
##7D841A1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d841a;
/* rgb */ color: rgb(125, 132, 26);
/* oklch */ color: oklch(58.8% 0.123 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a761',
    500: '#7d841a',
    950: '#000000',
  },
}
SCSS
$custom: #7d841a;
$custom-light: #a6a761;
$custom-dark: #000000;
JSON
{
  "hex": "#7d841a",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 63.962,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5884,
    "c": 0.12268,
    "h": 113.5
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#7D841A
secondary
#4A42B8
accent
#3EEA49
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D841A

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

Preview Lab → · Contrast checker → · Palette generator →

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