#7F8220#7F8220

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

Color values

HEX#7F8220
RGBrgb(127, 130, 32)
HSLhsl(62, 60%, 32%)
HSVhsv(62, 75%, 51%)
CMYKcmyk(2.3%, 0%, 75.4%, 49%)
CIE-LABlab(52.49, -13.52, 49.23)
CIE-LCHlch(52.49, 51.05, 105.36°)
OKLaboklab(58.58% -0.0423 0.1086)
OKLCHoklch(58.58% 0.117 111.3)
XYZxyz(16.9963, 20.5820, 4.4436)
Luminance0.2058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8220 #232082
analogous
#825420 #7F8220 #4E8220
triadic
#7F8220 #207F82 #82207F
tetradic
#7F8220 #208254 #232082 #82204E
square
#7F8220 #208254 #232082 #82204E
split-complementary
#7F8220 #204E82 #542082
monochromatic
#1F2008 #4F5114 #7F8220 #AFB32C #CED24A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8220#FFFFFF#000000##000000
##7F82201.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)
#8D7C0C
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#887A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7f8220;
/* rgb */ color: rgb(127, 130, 32);
/* oklch */ color: oklch(58.6% 0.117 111.3);
Tailwind
colors: {
  custom: {
    50: '#a7a663',
    500: '#7f8220',
    950: '#000000',
  },
}
SCSS
$custom: #7f8220;
$custom-light: #a7a663;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8220",
  "rgb": {
    "r": 127,
    "g": 130,
    "b": 32
  },
  "hsl": {
    "h": 61.837,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58578,
    "c": 0.11651,
    "h": 111.3
  },
  "luminance": 0.20582
}

Semantic roles & 50–950 ramp

primary
#7F8220
secondary
#4C49B5
accent
#44E449
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8220

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

Preview Lab → · Contrast checker → · Palette generator →

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