#8F8822#8F8822

#8F8822 is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.4% C 0.118 H 105.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8F8822
RGBrgb(143, 136, 34)
HSLhsl(56, 62%, 35%)
HSVhsv(56, 76%, 56%)
CMYKcmyk(0%, 4.9%, 76.2%, 43.9%)
CIE-LABlab(55.65, -9.36, 51.98)
CIE-LCHlch(55.65, 52.82, 100.21°)
OKLaboklab(61.45% -0.0314 0.1142)
OKLCHoklch(61.45% 0.118 105.4)
XYZxyz(20.4214, 23.5642, 4.9857)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8822 #22298F
analogous
#8F5222 #8F8822 #5F8F22
triadic
#8F8822 #228F88 #88228F
tetradic
#8F8822 #228F52 #22298F #8F225F
square
#8F8822 #228F52 #22298F #8F225F
split-complementary
#8F8822 #225F8F #52228F
monochromatic
#2C2A0A #5E5916 #8F8822 #C0B72E #D7CE55

Accessibility & contrast

On white

3.68
#8F8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#8F8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8822
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8822#FFFFFF#000000##000000
##8F88221.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830D
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#9A7E75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8f8822;
/* rgb */ color: rgb(143, 136, 34);
/* oklch */ color: oklch(61.4% 0.118 105.4);
Tailwind
colors: {
  custom: {
    50: '#b3aa66',
    500: '#8f8822',
    950: '#000000',
  },
}
SCSS
$custom: #8f8822;
$custom-light: #b3aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8822",
  "rgb": {
    "r": 143,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 56.147,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61446,
    "c": 0.11841,
    "h": 105.4
  },
  "luminance": 0.23563
}

Semantic roles & 50–950 ramp

primary
#8F8822
secondary
#5259BA
accent
#4DE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8822

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

Preview Lab → · Contrast checker → · Palette generator →

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