#5F3FCA#5F3FCA

#5F3FCA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.9% C 0.203 H 286.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5F3FCA
RGBrgb(95, 63, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 69%, 79%)
CMYKcmyk(53%, 68.8%, 0%, 20.8%)
CIE-LABlab(38.29, 48.56, -67.53)
CIE-LCHlch(38.29, 83.17, 305.72°)
OKLaboklab(48.91% 0.0589 -0.194)
OKLCHoklch(48.91% 0.203 286.9)
XYZxyz(17.1543, 10.2513, 56.9405)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FCA #AACA3F
analogous
#3F65CA #5F3FCA #A53FCA
triadic
#5F3FCA #CA5F3F #3FCA5F
tetradic
#5F3FCA #CA3F65 #AACA3F #3FCAA5
square
#5F3FCA #CA3F65 #AACA3F #3FCAA5
split-complementary
#5F3FCA #CAA53F #65CA3F
monochromatic
#311F70 #472CA0 #5F3FCA #876FD7 #AF9FE4

Accessibility & contrast

On white

6.88
#5F3FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F3FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FCA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FCA#FFFFFF#000000##FFFFFF
##5F3FCA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#346380
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3fca;
/* rgb */ color: rgb(95, 63, 202);
/* oklch */ color: oklch(48.9% 0.203 286.9);
Tailwind
colors: {
  custom: {
    50: '#9677db',
    500: '#5f3fca',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fca;
$custom-light: #9677db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fca",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 202
  },
  "hsl": {
    "h": 253.813,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48913,
    "c": 0.20276,
    "h": 286.9
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#5F3FCA
secondary
#C3D194
accent
#E048BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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