#7F8221#7F8221

#7F8221 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.6% C 0.116 H 111.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F8221
RGBrgb(127, 130, 33)
HSLhsl(62, 60%, 32%)
HSVhsv(62, 75%, 51%)
CMYKcmyk(2.3%, 0%, 74.6%, 49%)
CIE-LABlab(52.50, -13.47, 48.86)
CIE-LCHlch(52.50, 50.69, 105.41°)
OKLaboklab(58.59% -0.042 0.108)
OKLCHoklch(58.59% 0.116 111.3)
XYZxyz(17.0101, 20.5875, 4.5163)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8221 #242182
analogous
#825521 #7F8221 #4F8221
triadic
#7F8221 #217F82 #82217F
tetradic
#7F8221 #218255 #242182 #82214F
square
#7F8221 #218255 #242182 #82214F
split-complementary
#7F8221 #214F82 #552182
monochromatic
#202008 #4F5115 #7F8221 #AFB32D #CDD24C

Accessibility & contrast

On white

4.10
#7F8221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#7F8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8221
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8221#FFFFFF#000000##000000
##7F82211.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8221;
/* rgb */ color: rgb(127, 130, 33);
/* oklch */ color: oklch(58.6% 0.116 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a664',
    500: '#7f8221',
    950: '#000000',
  },
}
SCSS
$custom: #7f8221;
$custom-light: #a7a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8221",
  "rgb": {
    "r": 127,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 61.856,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58585,
    "c": 0.1159,
    "h": 111.3
  },
  "luminance": 0.20587
}

Semantic roles & 50–950 ramp

primary
#7F8221
secondary
#4E4AB4
accent
#45E34A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8221

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

Preview Lab → · Contrast checker → · Palette generator →

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