#5F2CA3#5F2CA3

#5F2CA3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.179 H 297.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA3
RGBrgb(95, 44, 163)
HSLhsl(266, 57%, 41%)
HSVhsv(266, 73%, 64%)
CMYKcmyk(41.7%, 73%, 0%, 36.1%)
CIE-LABlab(31.53, 47.56, -55.48)
CIE-LCHlch(31.53, 73.07, 310.60°)
OKLaboklab(43.09% 0.0841 -0.1586)
OKLCHoklch(43.09% 0.179 297.9)
XYZxyz(12.2292, 6.8784, 35.3266)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA3 #70A32C
analogous
#2C35A3 #5F2CA3 #9A2CA3
triadic
#5F2CA3 #A35F2C #2CA35F
tetradic
#5F2CA3 #A32C35 #70A32C #2CA39A
square
#5F2CA3 #A32C35 #70A32C #2CA39A
split-complementary
#5F2CA3 #A39A2C #35A32C
monochromatic
#271243 #431F73 #5F2CA3 #7C41CC #9D71D9

Accessibility & contrast

On white

8.84
#5F2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA3
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA3#FFFFFF#000000##FFFFFF
##5F2CA31.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#4E4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ca3;
/* rgb */ color: rgb(95, 44, 163);
/* oklch */ color: oklch(43.1% 0.179 297.9);
Tailwind
colors: {
  custom: {
    50: '#936abf',
    500: '#5f2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca3;
$custom-light: #936abf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca3",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 265.714,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43094,
    "c": 0.17948,
    "h": 297.9
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#5F2CA3
secondary
#9BC06B
accent
#E1479F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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