#8B257D#8B257D

#8B257D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.168 H 334.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8B257D
RGBrgb(139, 37, 125)
HSLhsl(308, 58%, 35%)
HSVhsv(308, 73%, 55%)
CMYKcmyk(0%, 73.4%, 10.1%, 45.5%)
CIE-LABlab(34.59, 52.21, -26.86)
CIE-LCHlch(34.59, 58.72, 332.78°)
OKLaboklab(45.83% 0.1515 -0.0735)
OKLCHoklch(45.83% 0.168 334.1)
XYZxyz(15.0108, 8.2941, 20.2084)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B257D #258B33
analogous
#66258B #8B257D #8B254A
triadic
#8B257D #7D8B25 #257D8B
tetradic
#8B257D #8B6625 #258B33 #254A8B
square
#8B257D #8B6625 #258B33 #254A8B
split-complementary
#8B257D #4A8B25 #258B66
monochromatic
#2A0B26 #5B1852 #8B257D #BB32A8 #D358C2

Accessibility & contrast

On white

7.90
#8B257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8B257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B257D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B257D#FFFFFF#000000##FFFFFF
##8B257D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#922E4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b257d;
/* rgb */ color: rgb(139, 37, 125);
/* oklch */ color: oklch(45.8% 0.168 334.1);
Tailwind
colors: {
  custom: {
    50: '#b06aa3',
    500: '#8b257d',
    950: '#000000',
  },
}
SCSS
$custom: #8b257d;
$custom-light: #b06aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b257d",
  "rgb": {
    "r": 139,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 308.235,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45832,
    "c": 0.16843,
    "h": 334.1
  },
  "luminance": 0.08293
}

Semantic roles & 50–950 ramp

primary
#8B257D
secondary
#55B762
accent
#E15C47
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B257D

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

Preview Lab → · Contrast checker → · Palette generator →

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