#8B24B2#8B24B2

#8B24B2 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.213 H 314.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8B24B2
RGBrgb(139, 36, 178)
HSLhsl(284, 66%, 42%)
HSVhsv(284, 80%, 70%)
CMYKcmyk(21.9%, 79.8%, 0%, 30.2%)
CIE-LABlab(37.78, 62.14, -54.03)
CIE-LCHlch(37.78, 82.34, 318.99°)
OKLaboklab(49.16% 0.1491 -0.1527)
OKLCHoklch(49.16% 0.213 314.3)
XYZxyz(19.3129, 9.9658, 43.0171)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B24B2 #4BB224
analogous
#4424B2 #8B24B2 #B22492
triadic
#8B24B2 #B28B24 #24B28B
tetradic
#8B24B2 #B24424 #4BB224 #2492B2
square
#8B24B2 #B24424 #4BB224 #2492B2
split-complementary
#8B24B2 #92B224 #24B244
monochromatic
#3B0F4C #631A7F #8B24B2 #AD3CD8 #C26FE2

Accessibility & contrast

On white

7.02
#8B24B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8B24B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B24B2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B24B2#FFFFFF#000000##FFFFFF
##8B24B21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#87466C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b24b2;
/* rgb */ color: rgb(139, 36, 178);
/* oklch */ color: oklch(49.2% 0.213 314.3);
Tailwind
colors: {
  custom: {
    50: '#b26cca',
    500: '#8b24b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b24b2;
$custom-light: #b26cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b24b2",
  "rgb": {
    "r": 139,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 283.521,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49162,
    "c": 0.21342,
    "h": 314.3
  },
  "luminance": 0.09965
}

Semantic roles & 50–950 ramp

primary
#8B24B2
secondary
#84C869
accent
#E93F6D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B24B2

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

Preview Lab → · Contrast checker → · Palette generator →

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