#5F2CA1#5F2CA1

#5F2CA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.177 H 298.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA1
RGBrgb(95, 44, 161)
HSLhsl(266, 57%, 40%)
HSVhsv(266, 73%, 63%)
CMYKcmyk(41%, 72.7%, 0%, 36.9%)
CIE-LABlab(31.36, 47.03, -54.54)
CIE-LCHlch(31.36, 72.02, 310.77°)
OKLaboklab(42.93% 0.0845 -0.1558)
OKLCHoklch(42.93% 0.177 298.5)
XYZxyz(12.0514, 6.8073, 34.3903)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA1 #6EA12C
analogous
#2C33A1 #5F2CA1 #992CA1
triadic
#5F2CA1 #A15F2C #2CA15F
tetradic
#5F2CA1 #A12C33 #6EA12C #2CA199
square
#5F2CA1 #A12C33 #6EA12C #2CA199
split-complementary
#5F2CA1 #A1992C #33A12C
monochromatic
#261241 #431F71 #5F2CA1 #7C40CB #9D70D8

Accessibility & contrast

On white

8.89
#5F2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA1
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA1#FFFFFF#000000##FFFFFF
##5F2CA11.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4F4964
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ca1;
/* rgb */ color: rgb(95, 44, 161);
/* oklch */ color: oklch(42.9% 0.177 298.5);
Tailwind
colors: {
  custom: {
    50: '#926abe',
    500: '#5f2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca1;
$custom-light: #926abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca1",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 266.154,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42926,
    "c": 0.17723,
    "h": 298.5
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#5F2CA1
secondary
#9ABF6A
accent
#E0479E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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