#5F21BD#5F21BD

#5F21BD is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.3% C 0.218 H 293.0°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5F21BD
RGBrgb(95, 33, 189)
HSLhsl(264, 70%, 44%)
HSVhsv(264, 83%, 74%)
CMYKcmyk(49.7%, 82.5%, 0%, 25.9%)
CIE-LABlab(32.24, 58.88, -69.83)
CIE-LCHlch(32.24, 91.34, 310.14°)
OKLaboklab(44.31% 0.0852 -0.2006)
OKLCHoklch(44.31% 0.218 293)
XYZxyz(14.4459, 7.1942, 48.7617)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F21BD #7FBD21
analogous
#2131BD #5F21BD #AD21BD
triadic
#5F21BD #BD5F21 #21BD5F
tetradic
#5F21BD #BD2131 #7FBD21 #21BDAD
square
#5F21BD #BD2131 #7FBD21 #21BDAD
split-complementary
#5F21BD #BDAD21 #31BD21
monochromatic
#2B0F55 #451889 #5F21BD #7D3EDD #A072E6

Accessibility & contrast

On white

8.61
#5F21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F21BD
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F21BD#FFFFFF#000000##FFFFFF
##5F21BD1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#405071
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f21bd;
/* rgb */ color: rgb(95, 33, 189);
/* oklch */ color: oklch(44.3% 0.218 293.0);
Tailwind
colors: {
  custom: {
    50: '#9666d2',
    500: '#5f21bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f21bd;
$custom-light: #9666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f21bd",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 263.846,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44309,
    "c": 0.21792,
    "h": 293
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#5F21BD
secondary
#A7CD6D
accent
#ED3BA6
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0614
muted
#7E7A83

Preview Lab

Preview with #5F21BD

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

Preview Lab → · Contrast checker → · Palette generator →

#5F21BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva