#7C821A#7C821A

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

Color values

HEX#7C821A
RGBrgb(124, 130, 26)
HSLhsl(63, 67%, 31%)
HSVhsv(63, 80%, 51%)
CMYKcmyk(4.6%, 0%, 80%, 49%)
CIE-LABlab(52.20, -15.16, 50.93)
CIE-LCHlch(52.20, 53.14, 106.57°)
OKLaboklab(58.28% -0.0472 0.1112)
OKLCHoklch(58.28% 0.121 113)
XYZxyz(16.4818, 20.3253, 4.0320)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C821A #201A82
analogous
#82541A #7C821A #48821A
triadic
#7C821A #1A7C82 #821A7C
tetradic
#7C821A #1A8254 #201A82 #821A48
square
#7C821A #1A8254 #201A82 #821A48
split-complementary
#7C821A #1A4882 #541A82
monochromatic
#1B1C06 #4B4F10 #7C821A #ADB524 #CFD83E

Accessibility & contrast

On white

4.15
#7C821A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#7C821A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C821A
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C821A#FFFFFF#000000##000000
##7C821A1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7E23
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c821a;
/* rgb */ color: rgb(124, 130, 26);
/* oklch */ color: oklch(58.3% 0.121 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a661',
    500: '#7c821a',
    950: '#000000',
  },
}
SCSS
$custom: #7c821a;
$custom-light: #a5a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7c821a",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 63.462,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58277,
    "c": 0.12077,
    "h": 113
  },
  "luminance": 0.20325
}

Semantic roles & 50–950 ramp

primary
#7C821A
secondary
#4942B6
accent
#3EEA48
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C821A

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

Preview Lab → · Contrast checker → · Palette generator →

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