#8F8722#8F8722

#8F8722 is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.2% C 0.117 H 104.7°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8F8722
RGBrgb(143, 135, 34)
HSLhsl(56, 62%, 35%)
HSVhsv(56, 76%, 56%)
CMYKcmyk(0%, 5.6%, 76.2%, 43.9%)
CIE-LABlab(55.36, -8.82, 51.71)
CIE-LCHlch(55.36, 52.46, 99.68°)
OKLaboklab(61.22% -0.0298 0.1136)
OKLCHoklch(61.22% 0.117 104.7)
XYZxyz(20.2813, 23.2839, 4.9390)
Luminance0.2328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8722 #222A8F
analogous
#8F5022 #8F8722 #618F22
triadic
#8F8722 #228F87 #87228F
tetradic
#8F8722 #228F50 #222A8F #8F2261
square
#8F8722 #228F50 #222A8F #8F2261
split-complementary
#8F8722 #22618F #50228F
monochromatic
#2C2A0A #5E5816 #8F8722 #C0B62E #D7CD55

Accessibility & contrast

On white

3.71
#8F8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8F8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8722
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8722#FFFFFF#000000##000000
##8F87221.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820D
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#9A7D74
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8f8722;
/* rgb */ color: rgb(143, 135, 34);
/* oklch */ color: oklch(61.2% 0.117 104.7);
Tailwind
colors: {
  custom: {
    50: '#b3a965',
    500: '#8f8722',
    950: '#000000',
  },
}
SCSS
$custom: #8f8722;
$custom-light: #b3a965;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8722",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 55.596,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61218,
    "c": 0.11746,
    "h": 104.7
  },
  "luminance": 0.23283
}

Semantic roles & 50–950 ramp

primary
#8F8722
secondary
#525ABA
accent
#4FE543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8722

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

Preview Lab → · Contrast checker → · Palette generator →

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