#8F258B#8F258B

#8F258B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.181 H 329.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8F258B
RGBrgb(143, 37, 139)
HSLhsl(302, 59%, 35%)
HSVhsv(302, 74%, 56%)
CMYKcmyk(0%, 74.1%, 2.8%, 43.9%)
CIE-LABlab(36.04, 55.46, -33.21)
CIE-LCHlch(36.04, 64.64, 329.08°)
OKLaboklab(47.25% 0.1566 -0.0917)
OKLCHoklch(47.25% 0.181 329.6)
XYZxyz(16.6494, 9.0281, 25.2868)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F258B #258F29
analogous
#5E258F #8F258B #8F2556
triadic
#8F258B #8B8F25 #258B8F
tetradic
#8F258B #8F5E25 #258F29 #25568F
square
#8F258B #8F5E25 #258F29 #25568F
split-complementary
#8F258B #568F25 #258F5E
monochromatic
#2E0C2C #5E185C #8F258B #C032BA #D45AD0

Accessibility & contrast

On white

7.49
#8F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F258B
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F258B#FFFFFF#000000##FFFFFF
##8F258B1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#445A88
Tritanopia (blue-blind)
#943456
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8f258b;
/* rgb */ color: rgb(143, 37, 139);
/* oklch */ color: oklch(47.3% 0.181 329.6);
Tailwind
colors: {
  custom: {
    50: '#b36bad',
    500: '#8f258b',
    950: '#000000',
  },
}
SCSS
$custom: #8f258b;
$custom-light: #b36bad;
$custom-dark: #000000;
JSON
{
  "hex": "#8f258b",
  "rgb": {
    "r": 143,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 302.264,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47254,
    "c": 0.18149,
    "h": 329.6
  },
  "luminance": 0.09027
}

Semantic roles & 50–950 ramp

primary
#8F258B
secondary
#57B95B
accent
#E24C46
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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