#5F3DCB#5F3DCB

#5F3DCB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.206 H 287.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5F3DCB
RGBrgb(95, 61, 203)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.2%, 70%, 0%, 20.4%)
CIE-LABlab(37.99, 49.91, -68.60)
CIE-LCHlch(37.99, 84.84, 306.04°)
OKLaboklab(48.72% 0.0604 -0.1972)
OKLCHoklch(48.72% 0.206 287)
XYZxyz(17.1644, 10.0813, 57.5298)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCB #A9CB3D
analogous
#3D62CB #5F3DCB #A63DCB
triadic
#5F3DCB #CB5F3D #3DCB5F
tetradic
#5F3DCB #CB3D62 #A9CB3D #3DCBA6
square
#5F3DCB #CB3D62 #A9CB3D #3DCBA6
split-complementary
#5F3DCB #CBA63D #62CB3D
monochromatic
#321E70 #472BA0 #5F3DCB #876DD8 #AF9EE5

Accessibility & contrast

On white

6.96
#5F3DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5F3DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DCB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DCB#FFFFFF#000000##FFFFFF
##5F3DCB1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#336280
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3dcb;
/* rgb */ color: rgb(95, 61, 203);
/* oklch */ color: oklch(48.7% 0.206 287.0);
Tailwind
colors: {
  custom: {
    50: '#9775dc',
    500: '#5f3dcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dcb;
$custom-light: #9775dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dcb",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 203
  },
  "hsl": {
    "h": 254.366,
    "s": 57.724,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48724,
    "c": 0.20623,
    "h": 287
  },
  "luminance": 0.10082
}

Semantic roles & 50–950 ramp

primary
#5F3DCB
secondary
#C2D193
accent
#E147BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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