#8B257E#8B257E

#8B257E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.169 H 333.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8B257E
RGBrgb(139, 37, 126)
HSLhsl(308, 58%, 35%)
HSVhsv(308, 73%, 55%)
CMYKcmyk(0%, 73.4%, 9.4%, 45.5%)
CIE-LABlab(34.64, 52.38, -27.41)
CIE-LCHlch(34.64, 59.11, 332.38°)
OKLaboklab(45.89% 0.1516 -0.0751)
OKLCHoklch(45.89% 0.169 333.7)
XYZxyz(15.0750, 8.3197, 20.5465)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B257E #258B32
analogous
#65258B #8B257E #8B254B
triadic
#8B257E #7E8B25 #257E8B
tetradic
#8B257E #8B6525 #258B32 #254B8B
square
#8B257E #8B6525 #258B32 #254B8B
split-complementary
#8B257E #4B8B25 #258B65
monochromatic
#2A0B26 #5B1852 #8B257E #BB32AA #D358C3

Accessibility & contrast

On white

7.88
#8B257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B257E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B257E#FFFFFF#000000##FFFFFF
##8B257E1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224880
Deuteranopia (green-blind)
#47577C
Tritanopia (blue-blind)
#922E4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b257e;
/* rgb */ color: rgb(139, 37, 126);
/* oklch */ color: oklch(45.9% 0.169 333.7);
Tailwind
colors: {
  custom: {
    50: '#b06aa3',
    500: '#8b257e',
    950: '#000000',
  },
}
SCSS
$custom: #8b257e;
$custom-light: #b06aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b257e",
  "rgb": {
    "r": 139,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 307.647,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.16919,
    "h": 333.7
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#8B257E
secondary
#55B761
accent
#E15A47
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B257E

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

Preview Lab → · Contrast checker → · Palette generator →

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