#8B23B2#8B23B2

#8B23B2 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.214 H 314.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8B23B2
RGBrgb(139, 35, 178)
HSLhsl(284, 67%, 42%)
HSVhsv(284, 80%, 70%)
CMYKcmyk(21.9%, 80.3%, 0%, 30.2%)
CIE-LABlab(37.67, 62.45, -54.20)
CIE-LCHlch(37.67, 82.69, 319.04°)
OKLaboklab(49.09% 0.1499 -0.1532)
OKLCHoklch(49.09% 0.214 314.4)
XYZxyz(19.2830, 9.9061, 43.0072)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B23B2 #4AB223
analogous
#4323B2 #8B23B2 #B22392
triadic
#8B23B2 #B28B23 #23B28B
tetradic
#8B23B2 #B24323 #4AB223 #2392B2
square
#8B23B2 #B24323 #4AB223 #2392B2
split-complementary
#8B23B2 #92B223 #23B243
monochromatic
#3B0F4C #63197F #8B23B2 #AD3AD8 #C26DE2

Accessibility & contrast

On white

7.04
#8B23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8B23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B23B2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B23B2#FFFFFF#000000##FFFFFF
##8B23B21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#165BAF
Tritanopia (blue-blind)
#87466B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b23b2;
/* rgb */ color: rgb(139, 35, 178);
/* oklch */ color: oklch(49.1% 0.214 314.4);
Tailwind
colors: {
  custom: {
    50: '#b26bca',
    500: '#8b23b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b23b2;
$custom-light: #b26bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b23b2",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 283.636,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49087,
    "c": 0.21432,
    "h": 314.4
  },
  "luminance": 0.09905
}

Semantic roles & 50–950 ramp

primary
#8B23B2
secondary
#82C968
accent
#EA3E6D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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