#7D8221#7D8221

#7D8221 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.116 H 112.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7D8221
RGBrgb(125, 130, 33)
HSLhsl(63, 60%, 32%)
HSVhsv(63, 75%, 51%)
CMYKcmyk(3.8%, 0%, 74.6%, 49%)
CIE-LABlab(52.33, -14.38, 48.64)
CIE-LCHlch(52.33, 50.72, 106.47°)
OKLaboklab(58.41% -0.0445 0.1076)
OKLCHoklch(58.41% 0.116 112.5)
XYZxyz(16.7151, 20.4354, 4.5025)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8221 #262182
analogous
#825721 #7D8221 #4D8221
triadic
#7D8221 #217D82 #82217D
tetradic
#7D8221 #218257 #262182 #82214D
square
#7D8221 #218257 #262182 #82214D
split-complementary
#7D8221 #214D82 #572182
monochromatic
#1F2008 #4E5115 #7D8221 #ACB32D #CBD24C

Accessibility & contrast

On white

4.13
#7D8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#7D8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8221
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8221#FFFFFF#000000##000000
##7D82211.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8221;
/* rgb */ color: rgb(125, 130, 33);
/* oklch */ color: oklch(58.4% 0.116 112.5);
Tailwind
colors: {
  custom: {
    50: '#a6a664',
    500: '#7d8221',
    950: '#000000',
  },
}
SCSS
$custom: #7d8221;
$custom-light: #a6a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8221",
  "rgb": {
    "r": 125,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 63.093,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58408,
    "c": 0.11643,
    "h": 112.5
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#7D8221
secondary
#504AB4
accent
#45E34D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8221

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

Preview Lab → · Contrast checker → · Palette generator →

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