#8F8022#8F8022

#8F8022 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.6% C 0.111 H 99.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8F8022
RGBrgb(143, 128, 34)
HSLhsl(52, 62%, 35%)
HSVhsv(52, 76%, 56%)
CMYKcmyk(0%, 10.5%, 76.2%, 43.9%)
CIE-LABlab(53.38, -4.98, 49.84)
CIE-LCHlch(53.38, 50.09, 95.70°)
OKLaboklab(59.64% -0.019 0.1096)
OKLCHoklch(59.64% 0.111 99.8)
XYZxyz(19.3365, 21.3944, 4.6241)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8022 #22318F
analogous
#8F4A22 #8F8022 #688F22
triadic
#8F8022 #228F80 #80228F
tetradic
#8F8022 #228F4A #22318F #8F2268
square
#8F8022 #228F4A #22318F #8F2268
split-complementary
#8F8022 #22688F #4A228F
monochromatic
#2C270A #5E5416 #8F8022 #C0AC2E #D7C555

Accessibility & contrast

On white

3.98
#8F8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8F8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8022
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8022#FFFFFF#000000##000000
##8F80221.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C10
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#9A766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f8022;
/* rgb */ color: rgb(143, 128, 34);
/* oklch */ color: oklch(59.6% 0.111 99.8);
Tailwind
colors: {
  custom: {
    50: '#b3a465',
    500: '#8f8022',
    950: '#000000',
  },
}
SCSS
$custom: #8f8022;
$custom-light: #b3a465;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8022",
  "rgb": {
    "r": 143,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 51.743,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59641,
    "c": 0.11126,
    "h": 99.8
  },
  "luminance": 0.21393
}

Semantic roles & 50–950 ramp

primary
#8F8022
secondary
#5261BA
accent
#59E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8022

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

Preview Lab → · Contrast checker → · Palette generator →

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