#8B257A#8B257A

#8B257A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.166 H 335.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8B257A
RGBrgb(139, 37, 122)
HSLhsl(310, 58%, 35%)
HSVhsv(310, 73%, 55%)
CMYKcmyk(0%, 73.4%, 12.2%, 45.5%)
CIE-LABlab(34.43, 51.74, -25.23)
CIE-LCHlch(34.43, 57.56, 334.01°)
OKLaboklab(45.67% 0.1513 -0.0688)
OKLCHoklch(45.67% 0.166 335.5)
XYZxyz(14.8221, 8.2186, 19.2143)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B257A #258B36
analogous
#69258B #8B257A #8B2547
triadic
#8B257A #7A8B25 #257A8B
tetradic
#8B257A #8B6925 #258B36 #25478B
square
#8B257A #8B6925 #258B36 #25478B
split-complementary
#8B257A #478B25 #258B69
monochromatic
#2A0B25 #5B1850 #8B257A #BB32A4 #D358BE

Accessibility & contrast

On white

7.94
#8B257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8B257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B257A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B257A#FFFFFF#000000##FFFFFF
##8B257A1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#495678
Tritanopia (blue-blind)
#922C4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b257a;
/* rgb */ color: rgb(139, 37, 122);
/* oklch */ color: oklch(45.7% 0.166 335.5);
Tailwind
colors: {
  custom: {
    50: '#b06aa0',
    500: '#8b257a',
    950: '#000000',
  },
}
SCSS
$custom: #8b257a;
$custom-light: #b06aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b257a",
  "rgb": {
    "r": 139,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 310,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45671,
    "c": 0.16618,
    "h": 335.5
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#8B257A
secondary
#55B765
accent
#E16047
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B257A

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

Preview Lab → · Contrast checker → · Palette generator →

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