#8B248E#8B248E

#8B248E is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.183 H 326.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8B248E
RGBrgb(139, 36, 142)
HSLhsl(298, 60%, 35%)
HSVhsv(298, 75%, 56%)
CMYKcmyk(2.1%, 74.6%, 0%, 44.3%)
CIE-LABlab(35.41, 55.40, -36.10)
CIE-LCHlch(35.41, 66.13, 326.91°)
OKLaboklab(46.73% 0.1531 -0.1002)
OKLCHoklch(46.73% 0.183 326.8)
XYZxyz(16.1605, 8.7048, 26.4150)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B248E #278E24
analogous
#56248E #8B248E #8E245C
triadic
#8B248E #8E8B24 #248E8B
tetradic
#8B248E #8E5624 #278E24 #245C8E
square
#8B248E #8E5624 #278E24 #245C8E
split-complementary
#8B248E #5C8E24 #248E56
monochromatic
#2B0B2C #5B185D #8B248E #BB30BF #D158D5

Accessibility & contrast

On white

7.66
#8B248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8B248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B248E
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B248E#FFFFFF#000000##FFFFFF
##8B248E1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#8F3557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b248e;
/* rgb */ color: rgb(139, 36, 142);
/* oklch */ color: oklch(46.7% 0.183 326.8);
Tailwind
colors: {
  custom: {
    50: '#b06aaf',
    500: '#8b248e',
    950: '#000000',
  },
}
SCSS
$custom: #8b248e;
$custom-light: #b06aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b248e",
  "rgb": {
    "r": 139,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 298.302,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46728,
    "c": 0.18299,
    "h": 326.8
  },
  "luminance": 0.08704
}

Semantic roles & 50–950 ramp

primary
#8B248E
secondary
#58B955
accent
#E3454A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B248E

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

Preview Lab → · Contrast checker → · Palette generator →

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