#7F8322#7F8322

#7F8322 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.116 H 111.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7F8322
RGBrgb(127, 131, 34)
HSLhsl(62, 59%, 32%)
HSVhsv(62, 74%, 51%)
CMYKcmyk(3.1%, 0%, 74%, 48.6%)
CIE-LABlab(52.80, -13.95, 48.78)
CIE-LCHlch(52.80, 50.73, 105.96°)
OKLaboklab(58.83% -0.0433 0.108)
OKLCHoklch(58.83% 0.116 111.8)
XYZxyz(17.1580, 20.8605, 4.6357)
Luminance0.2086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8322 #262283
analogous
#835622 #7F8322 #4F8322
triadic
#7F8322 #227F83 #83227F
tetradic
#7F8322 #228356 #262283 #83224F
square
#7F8322 #228356 #262283 #83224F
split-complementary
#7F8322 #224F83 #562283
monochromatic
#212209 #505215 #7F8322 #AEB42F #CCD14E

Accessibility & contrast

On white

4.06
#7F8322 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7F8322 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8322
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8322#FFFFFF#000000##000000
##7F83221.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D10
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#887B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8322;
/* rgb */ color: rgb(127, 131, 34);
/* oklch */ color: oklch(58.8% 0.116 111.8);
Tailwind
colors: {
  custom: {
    50: '#a7a665',
    500: '#7f8322',
    950: '#000000',
  },
}
SCSS
$custom: #7f8322;
$custom-light: #a7a665;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8322",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 62.474,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58828,
    "c": 0.11636,
    "h": 111.8
  },
  "luminance": 0.2086
}

Semantic roles & 50–950 ramp

primary
#7F8322
secondary
#514CB4
accent
#46E24C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8322

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

Preview Lab → · Contrast checker → · Palette generator →

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