#5F45CA#5F45CA

#5F45CA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.8% C 0.196 H 285.8°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5F45CA
RGBrgb(95, 69, 202)
HSLhsl(252, 56%, 53%)
HSVhsv(252, 66%, 79%)
CMYKcmyk(53%, 65.8%, 0%, 20.8%)
CIE-LABlab(39.50, 45.25, -65.55)
CIE-LCHlch(39.50, 79.65, 304.62°)
OKLaboklab(49.78% 0.0534 -0.1882)
OKLCHoklch(49.78% 0.196 285.8)
XYZxyz(17.5049, 10.9525, 57.0573)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45CA #B0CA45
analogous
#456DCA #5F45CA #A145CA
triadic
#5F45CA #CA5F45 #45CA5F
tetradic
#5F45CA #CA456D #B0CA45 #45CAA1
square
#5F45CA #CA456D #B0CA45 #45CAA1
split-complementary
#5F45CA #CAA145 #6DCA45
monochromatic
#312174 #452FA3 #5F45CA #8875D8 #B1A4E5

Accessibility & contrast

On white

6.58
#5F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45CA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45CA#FFFFFF#000000##FFFFFF
##5F45CA1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#336681
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f45ca;
/* rgb */ color: rgb(95, 69, 202);
/* oklch */ color: oklch(49.8% 0.196 285.8);
Tailwind
colors: {
  custom: {
    50: '#967adb',
    500: '#5f45ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f45ca;
$custom-light: #967adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45ca",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 251.729,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49783,
    "c": 0.19567,
    "h": 285.8
  },
  "luminance": 0.10953
}

Semantic roles & 50–950 ramp

primary
#5F45CA
secondary
#C7D299
accent
#DF49C2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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