#7C821B#7C821B

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

Color values

HEX#7C821B
RGBrgb(124, 130, 27)
HSLhsl(63, 66%, 31%)
HSVhsv(63, 79%, 51%)
CMYKcmyk(4.6%, 0%, 79.2%, 49%)
CIE-LABlab(52.21, -15.12, 50.61)
CIE-LCHlch(52.21, 52.82, 106.63°)
OKLaboklab(58.28% -0.047 0.1107)
OKLCHoklch(58.28% 0.12 113)
XYZxyz(16.4932, 20.3299, 4.0919)
Luminance0.2033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C821B #211B82
analogous
#82541B #7C821B #48821B
triadic
#7C821B #1B7C82 #821B7C
tetradic
#7C821B #1B8254 #211B82 #821B48
square
#7C821B #1B8254 #211B82 #821B48
split-complementary
#7C821B #1B4882 #541B82
monochromatic
#1B1D06 #4C4F10 #7C821B #ACB526 #CFD740

Accessibility & contrast

On white

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

On black

5.07
#7C821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C821B
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C821B#FFFFFF#000000##000000
##7C821B1.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c821b;
/* rgb */ color: rgb(124, 130, 27);
/* oklch */ color: oklch(58.3% 0.120 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a661',
    500: '#7c821b',
    950: '#000000',
  },
}
SCSS
$custom: #7c821b;
$custom-light: #a5a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7c821b",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 63.495,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58282,
    "c": 0.12024,
    "h": 113
  },
  "luminance": 0.20329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C821B

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

Preview Lab → · Contrast checker → · Palette generator →

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