#8F8528#8F8528

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

Color values

HEX#8F8528
RGBrgb(143, 133, 40)
HSLhsl(54, 56%, 36%)
HSVhsv(54, 72%, 56%)
CMYKcmyk(0%, 7%, 72%, 43.9%)
CIE-LABlab(54.83, -7.43, 48.90)
CIE-LCHlch(54.83, 49.47, 98.64°)
OKLaboklab(60.81% -0.0253 0.1088)
OKLCHoklch(60.81% 0.112 103.1)
XYZxyz(20.0991, 22.7687, 5.3432)
Luminance0.2277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8528 #28328F
analogous
#8F5128 #8F8528 #658F28
triadic
#8F8528 #288F85 #85288F
tetradic
#8F8528 #288F51 #28328F #8F2865
square
#8F8528 #288F51 #28328F #8F2865
split-complementary
#8F8528 #28658F #51288F
monochromatic
#2F2C0D #5F591B #8F8528 #BFB135 #D2C75F

Accessibility & contrast

On white

3.78
#8F8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8528#FFFFFF#000000##000000
##8F85281.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918119
Deuteranopia (green-blind)
#94852E
Tritanopia (blue-blind)
#9A7C73
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8f8528;
/* rgb */ color: rgb(143, 133, 40);
/* oklch */ color: oklch(60.8% 0.112 103.1);
Tailwind
colors: {
  custom: {
    50: '#b3a868',
    500: '#8f8528',
    950: '#000000',
  },
}
SCSS
$custom: #8f8528;
$custom-light: #b3a868;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8528",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 54.175,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60809,
    "c": 0.11172,
    "h": 103.1
  },
  "luminance": 0.22768
}

Semantic roles & 50–950 ramp

primary
#8F8528
secondary
#5B64B8
accent
#57E048
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8528

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

Preview Lab → · Contrast checker → · Palette generator →

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