#8F8525#8F8525

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

Color values

HEX#8F8525
RGBrgb(143, 133, 37)
HSLhsl(54, 59%, 35%)
HSVhsv(54, 74%, 56%)
CMYKcmyk(0%, 7%, 74.1%, 43.9%)
CIE-LABlab(54.81, -7.59, 50.07)
CIE-LCHlch(54.81, 50.64, 98.61°)
OKLaboklab(60.79% -0.0261 0.1107)
OKLCHoklch(60.79% 0.114 103.2)
XYZxyz(20.0500, 22.7491, 5.0848)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8525 #252F8F
analogous
#8F5025 #8F8525 #648F25
triadic
#8F8525 #258F85 #85258F
tetradic
#8F8525 #258F50 #252F8F #8F2564
square
#8F8525 #258F50 #252F8F #8F2564
split-complementary
#8F8525 #25648F #50258F
monochromatic
#2E2B0C #5E5818 #8F8525 #C0B232 #D4C95A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F8525#FFFFFF#000000##000000
##8F85251.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)
#918114
Deuteranopia (green-blind)
#95852C
Tritanopia (blue-blind)
#9A7B72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8f8525;
/* rgb */ color: rgb(143, 133, 37);
/* oklch */ color: oklch(60.8% 0.114 103.2);
Tailwind
colors: {
  custom: {
    50: '#b3a867',
    500: '#8f8525',
    950: '#000000',
  },
}
SCSS
$custom: #8f8525;
$custom-light: #b3a867;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8525",
  "rgb": {
    "r": 143,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 54.34,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60786,
    "c": 0.11374,
    "h": 103.2
  },
  "luminance": 0.22748
}

Semantic roles & 50–950 ramp

primary
#8F8525
secondary
#5760B9
accent
#54E246
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8525

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

Preview Lab → · Contrast checker → · Palette generator →

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