#7F8022#7F8022

#7F8022 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.113 H 110.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7F8022
RGBrgb(127, 128, 34)
HSLhsl(61, 58%, 32%)
HSVhsv(61, 73%, 50%)
CMYKcmyk(0.8%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.91, -12.34, 47.92)
CIE-LCHlch(51.91, 49.49, 104.44°)
OKLaboklab(58.12% -0.0388 0.1062)
OKLCHoklch(58.12% 0.113 110.1)
XYZxyz(16.7609, 20.0663, 4.5033)
Luminance0.2007 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8022 #232280
analogous
#805222 #7F8022 #508022
triadic
#7F8022 #227F80 #80227F
tetradic
#7F8022 #228052 #232280 #802250
square
#7F8022 #228052 #232280 #802250
split-complementary
#7F8022 #225080 #522280
monochromatic
#1F1F08 #4F5015 #7F8022 #AFB02F #CED04D

Accessibility & contrast

On white

4.19
#7F8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7F8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8022
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8022#FFFFFF#000000##000000
##7F80221.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A11
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#88786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8022;
/* rgb */ color: rgb(127, 128, 34);
/* oklch */ color: oklch(58.1% 0.113 110.1);
Tailwind
colors: {
  custom: {
    50: '#a7a464',
    500: '#7f8022',
    950: '#000000',
  },
}
SCSS
$custom: #7f8022;
$custom-light: #a7a464;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8022",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 60.638,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.11306,
    "h": 110.1
  },
  "luminance": 0.20066
}

Semantic roles & 50–950 ramp

primary
#7F8022
secondary
#4C4BB2
accent
#47E148
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8022

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

Preview Lab → · Contrast checker → · Palette generator →

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