#8F7E28#8F7E28

#8F7E28 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.2% C 0.106 H 97.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8F7E28
RGBrgb(143, 126, 40)
HSLhsl(50, 56%, 36%)
HSVhsv(50, 72%, 56%)
CMYKcmyk(0%, 11.9%, 72%, 43.9%)
CIE-LABlab(52.86, -3.56, 46.94)
CIE-LCHlch(52.86, 47.07, 94.34°)
OKLaboklab(59.24% -0.0143 0.1047)
OKLCHoklch(59.24% 0.106 97.8)
XYZxyz(19.1725, 20.9155, 5.0343)
Luminance0.2092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7E28 #28398F
analogous
#8F4A28 #8F7E28 #6C8F28
triadic
#8F7E28 #288F7E #7E288F
tetradic
#8F7E28 #288F4A #28398F #8F286C
square
#8F7E28 #288F4A #28398F #8F286C
split-complementary
#8F7E28 #286C8F #4A288F
monochromatic
#2F2A0D #5F541B #8F7E28 #BFA835 #D2BF5F

Accessibility & contrast

On white

4.05
#8F7E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#8F7E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7E28
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7E28#FFFFFF#000000##000000
##8F7E281.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1B
Deuteranopia (green-blind)
#8F812D
Tritanopia (blue-blind)
#9A746D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8f7e28;
/* rgb */ color: rgb(143, 126, 40);
/* oklch */ color: oklch(59.2% 0.106 97.8);
Tailwind
colors: {
  custom: {
    50: '#b3a368',
    500: '#8f7e28',
    950: '#000000',
  },
}
SCSS
$custom: #8f7e28;
$custom-light: #b3a368;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7e28",
  "rgb": {
    "r": 143,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 50.097,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.5924,
    "c": 0.10564,
    "h": 97.8
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#8F7E28
secondary
#5B6AB8
accent
#61E048
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8F7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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