#8F8521#8F8521

#8F8521 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.8% C 0.116 H 103.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8F8521
RGBrgb(143, 133, 33)
HSLhsl(55, 63%, 35%)
HSVhsv(55, 77%, 56%)
CMYKcmyk(0%, 7%, 76.9%, 43.9%)
CIE-LABlab(54.79, -7.77, 51.53)
CIE-LCHlch(54.79, 52.12, 98.58°)
OKLaboklab(60.76% -0.027 0.113)
OKLCHoklch(60.76% 0.116 103.4)
XYZxyz(19.9906, 22.7253, 4.7720)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8521 #212B8F
analogous
#8F4E21 #8F8521 #628F21
triadic
#8F8521 #218F85 #85218F
tetradic
#8F8521 #218F4E #212B8F #8F2162
square
#8F8521 #218F4E #212B8F #8F2162
split-complementary
#8F8521 #21628F #4E218F
monochromatic
#2C290A #5D5716 #8F8521 #C1B32C #D7CB53

Accessibility & contrast

On white

3.79
#8F8521 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#8F8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8521
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8521#FFFFFF#000000##000000
##8F85211.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#92800C
Deuteranopia (green-blind)
#958528
Tritanopia (blue-blind)
#9A7B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8f8521;
/* rgb */ color: rgb(143, 133, 33);
/* oklch */ color: oklch(60.8% 0.116 103.4);
Tailwind
colors: {
  custom: {
    50: '#b3a865',
    500: '#8f8521',
    950: '#000000',
  },
}
SCSS
$custom: #8f8521;
$custom-light: #b3a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8521",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 54.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60759,
    "c": 0.11621,
    "h": 103.4
  },
  "luminance": 0.22725
}

Semantic roles & 50–950 ramp

primary
#8F8521
secondary
#515BBB
accent
#51E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8521

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

Preview Lab → · Contrast checker → · Palette generator →

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