#5F3DCA#5F3DCA

#5F3DCA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.205 H 287.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5F3DCA
RGBrgb(95, 61, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 70%, 79%)
CMYKcmyk(53%, 69.8%, 0%, 20.8%)
CIE-LABlab(37.90, 49.62, -68.16)
CIE-LCHlch(37.90, 84.31, 306.06°)
OKLaboklab(48.64% 0.0606 -0.1959)
OKLCHoklch(48.64% 0.205 287.2)
XYZxyz(17.0456, 10.0338, 56.9042)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCA #A8CA3D
analogous
#3D62CA #5F3DCA #A63DCA
triadic
#5F3DCA #CA5F3D #3DCA5F
tetradic
#5F3DCA #CA3D62 #A8CA3D #3DCAA6
square
#5F3DCA #CA3D62 #A8CA3D #3DCAA6
split-complementary
#5F3DCA #CAA63D #62CA3D
monochromatic
#321E6E #472B9F #5F3DCA #876DD7 #AE9DE4

Accessibility & contrast

On white

6.98
#5F3DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5F3DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DCA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DCA#FFFFFF#000000##FFFFFF
##5F3DCA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#34627F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3dca;
/* rgb */ color: rgb(95, 61, 202);
/* oklch */ color: oklch(48.6% 0.205 287.2);
Tailwind
colors: {
  custom: {
    50: '#9675db',
    500: '#5f3dca',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dca;
$custom-light: #9675db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dca",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 254.468,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48637,
    "c": 0.20505,
    "h": 287.2
  },
  "luminance": 0.10035
}

Semantic roles & 50–950 ramp

primary
#5F3DCA
secondary
#C1D092
accent
#E047BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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