#7C841D#7C841D

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

Color values

HEX#7C841D
RGBrgb(124, 132, 29)
HSLhsl(65, 64%, 32%)
HSVhsv(65, 78%, 52%)
CMYKcmyk(6.1%, 0%, 78%, 48.2%)
CIE-LABlab(52.81, -16.09, 50.50)
CIE-LCHlch(52.81, 53.00, 107.67°)
OKLaboklab(58.77% -0.0495 0.1108)
OKLCHoklch(58.77% 0.121 114.1)
XYZxyz(16.7857, 20.8767, 4.3075)
Luminance0.2088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C841D #251D84
analogous
#84591D #7C841D #49841D
triadic
#7C841D #1D7C84 #841D7C
tetradic
#7C841D #1D8459 #251D84 #841D49
square
#7C841D #1D8459 #251D84 #841D49
split-complementary
#7C841D #1D4984 #591D84
monochromatic
#1E2007 #4D5212 #7C841D #ABB628 #CBD645

Accessibility & contrast

On white

4.06
#7C841D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7C841D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C841D
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C841D#FFFFFF#000000##000000
##7C841D1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c841d;
/* rgb */ color: rgb(124, 132, 29);
/* oklch */ color: oklch(58.8% 0.121 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a762',
    500: '#7c841d',
    950: '#000000',
  },
}
SCSS
$custom: #7c841d;
$custom-light: #a5a762;
$custom-dark: #000000;
JSON
{
  "hex": "#7c841d",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 64.66,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.12138,
    "h": 114.1
  },
  "luminance": 0.20876
}

Semantic roles & 50–950 ramp

primary
#7C841D
secondary
#4F46B7
accent
#41E74E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C841D

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

Preview Lab → · Contrast checker → · Palette generator →

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