#8F8922#8F8922

#8F8922 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.7% C 0.119 H 106.0°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8F8922
RGBrgb(143, 137, 34)
HSLhsl(57, 62%, 35%)
HSVhsv(57, 76%, 56%)
CMYKcmyk(0%, 4.2%, 76.2%, 43.9%)
CIE-LABlab(55.93, -9.90, 52.25)
CIE-LCHlch(55.93, 53.18, 100.73°)
OKLaboklab(61.67% -0.0329 0.1148)
OKLCHoklch(61.67% 0.119 106)
XYZxyz(20.5629, 23.8472, 5.0329)
Luminance0.2385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8922 #22288F
analogous
#8F5222 #8F8922 #5F8F22
triadic
#8F8922 #228F89 #89228F
tetradic
#8F8922 #228F52 #22288F #8F225F
square
#8F8922 #228F52 #22288F #8F225F
split-complementary
#8F8922 #225F8F #52228F
monochromatic
#2C2A0A #5E5A16 #8F8922 #C0B82E #D7CF55

Accessibility & contrast

On white

3.64
#8F8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8F8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8922
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8922#FFFFFF#000000##000000
##8F89221.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840C
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#9A7F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8f8922;
/* rgb */ color: rgb(143, 137, 34);
/* oklch */ color: oklch(61.7% 0.119 106.0);
Tailwind
colors: {
  custom: {
    50: '#b3ab66',
    500: '#8f8922',
    950: '#000000',
  },
}
SCSS
$custom: #8f8922;
$custom-light: #b3ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8922",
  "rgb": {
    "r": 143,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 56.697,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61673,
    "c": 0.11937,
    "h": 106
  },
  "luminance": 0.23846
}

Semantic roles & 50–950 ramp

primary
#8F8922
secondary
#5258BA
accent
#4CE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8F8922

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

Preview Lab → · Contrast checker → · Palette generator →

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