#7C8221#7C8221

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

Color values

HEX#7C8221
RGBrgb(124, 130, 33)
HSLhsl(64, 60%, 32%)
HSVhsv(64, 75%, 51%)
CMYKcmyk(4.6%, 0%, 74.6%, 49%)
CIE-LABlab(52.24, -14.83, 48.53)
CIE-LCHlch(52.24, 50.75, 106.99°)
OKLaboklab(58.32% -0.0457 0.1074)
OKLCHoklch(58.32% 0.117 113)
XYZxyz(16.5698, 20.3605, 4.4957)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8221 #272182
analogous
#825821 #7C8221 #4C8221
triadic
#7C8221 #217C82 #82217C
tetradic
#7C8221 #218258 #272182 #82214C
square
#7C8221 #218258 #272182 #82214C
split-complementary
#7C8221 #214C82 #582182
monochromatic
#1F2008 #4D5115 #7C8221 #ABB32D #C9D24C

Accessibility & contrast

On white

4.14
#7C8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8221#FFFFFF#000000##000000
##7C82211.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0E
Deuteranopia (green-blind)
#8C7E29
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8221;
/* rgb */ color: rgb(124, 130, 33);
/* oklch */ color: oklch(58.3% 0.117 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a664',
    500: '#7c8221',
    950: '#000000',
  },
}
SCSS
$custom: #7c8221;
$custom-light: #a5a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8221",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 63.711,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58321,
    "c": 0.11671,
    "h": 113
  },
  "luminance": 0.2036
}

Semantic roles & 50–950 ramp

primary
#7C8221
secondary
#514AB4
accent
#45E34F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8221

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

Preview Lab → · Contrast checker → · Palette generator →

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