#8F21CA#8F21CA

#8F21CA is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.3% C 0.238 H 309.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8F21CA
RGBrgb(143, 33, 202)
HSLhsl(279, 72%, 46%)
HSVhsv(279, 84%, 79%)
CMYKcmyk(29.2%, 83.7%, 0%, 20.8%)
CIE-LABlab(39.90, 68.48, -64.65)
CIE-LCHlch(39.90, 94.18, 316.65°)
OKLaboklab(51.33% 0.1507 -0.1838)
OKLCHoklch(51.33% 0.238 309.4)
XYZxyz(22.5300, 11.1921, 56.8391)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F21CA #5CCA21
analogous
#3A21CA #8F21CA #CA21B0
triadic
#8F21CA #CA8F21 #21CA8F
tetradic
#8F21CA #CA3A21 #5CCA21 #21B0CA
square
#8F21CA #CA3A21 #5CCA21 #21B0CA
split-complementary
#8F21CA #B0CA21 #21CA3A
monochromatic
#451061 #6A1895 #8F21CA #AB47E1 #C37CEA

Accessibility & contrast

On white

6.48
#8F21CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8F21CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F21CA
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F21CA#FFFFFF#000000##FFFFFF
##8F21CA1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#865079
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f21ca;
/* rgb */ color: rgb(143, 33, 202);
/* oklch */ color: oklch(51.3% 0.238 309.4);
Tailwind
colors: {
  custom: {
    50: '#b66ddb',
    500: '#8f21ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f21ca;
$custom-light: #b66ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f21ca",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 202
  },
  "hsl": {
    "h": 279.053,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51333,
    "c": 0.23769,
    "h": 309.4
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#8F21CA
secondary
#95D275
accent
#EF3979
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8F21CA

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

Preview Lab → · Contrast checker → · Palette generator →

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