#8F8522#8F8522

#8F8522 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#8F8522
RGBrgb(143, 133, 34)
HSLhsl(54, 62%, 35%)
HSVhsv(54, 76%, 56%)
CMYKcmyk(0%, 7%, 76.2%, 43.9%)
CIE-LABlab(54.79, -7.73, 51.18)
CIE-LCHlch(54.79, 51.76, 98.59°)
OKLaboklab(60.77% -0.0268 0.1125)
OKLCHoklch(60.77% 0.116 103.4)
XYZxyz(20.0048, 22.7310, 4.8468)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8522 #222C8F
analogous
#8F4E22 #8F8522 #638F22
triadic
#8F8522 #228F85 #85228F
tetradic
#8F8522 #228F4E #222C8F #8F2263
square
#8F8522 #228F4E #222C8F #8F2263
split-complementary
#8F8522 #22638F #4E228F
monochromatic
#2C290A #5E5716 #8F8522 #C0B32E #D7CB55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8522#FFFFFF#000000##000000
##8F85221.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)
#92800E
Deuteranopia (green-blind)
#958529
Tritanopia (blue-blind)
#9A7B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8f8522;
/* rgb */ color: rgb(143, 133, 34);
/* oklch */ color: oklch(60.8% 0.116 103.4);
Tailwind
colors: {
  custom: {
    50: '#b3a865',
    500: '#8f8522',
    950: '#000000',
  },
}
SCSS
$custom: #8f8522;
$custom-light: #b3a865;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8522",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 54.495,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60765,
    "c": 0.11561,
    "h": 103.4
  },
  "luminance": 0.2273
}

Semantic roles & 50–950 ramp

primary
#8F8522
secondary
#525CBA
accent
#52E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8522

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

Preview Lab → · Contrast checker → · Palette generator →

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