#8F8422#8F8422

#8F8422 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.5% C 0.115 H 102.7°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8F8422
RGBrgb(143, 132, 34)
HSLhsl(54, 62%, 35%)
HSVhsv(54, 76%, 56%)
CMYKcmyk(0%, 7.7%, 76.2%, 43.9%)
CIE-LABlab(54.51, -7.18, 50.91)
CIE-LCHlch(54.51, 51.41, 98.03°)
OKLaboklab(60.54% -0.0252 0.1119)
OKLCHoklch(60.54% 0.115 102.7)
XYZxyz(19.8686, 22.4585, 4.8014)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8422 #222D8F
analogous
#8F4E22 #8F8422 #648F22
triadic
#8F8422 #228F84 #84228F
tetradic
#8F8422 #228F4E #222D8F #8F2264
square
#8F8422 #228F4E #222D8F #8F2264
split-complementary
#8F8422 #22648F #4E228F
monochromatic
#2C290A #5E5616 #8F8422 #C0B22E #D7C955

Accessibility & contrast

On white

3.82
#8F8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#8F8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8422
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8422#FFFFFF#000000##000000
##8F84221.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800F
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#9A7A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8f8422;
/* rgb */ color: rgb(143, 132, 34);
/* oklch */ color: oklch(60.5% 0.115 102.7);
Tailwind
colors: {
  custom: {
    50: '#b3a765',
    500: '#8f8422',
    950: '#000000',
  },
}
SCSS
$custom: #8f8422;
$custom-light: #b3a765;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8422",
  "rgb": {
    "r": 143,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 53.945,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6054,
    "c": 0.11472,
    "h": 102.7
  },
  "luminance": 0.22458
}

Semantic roles & 50–950 ramp

primary
#8F8422
secondary
#525DBA
accent
#53E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8422

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

Preview Lab → · Contrast checker → · Palette generator →

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