#5F45CC#5F45CC

#5F45CC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.198 H 285.6°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5F45CC
RGBrgb(95, 69, 204)
HSLhsl(252, 57%, 54%)
HSVhsv(252, 66%, 80%)
CMYKcmyk(53.4%, 66.2%, 0%, 20%)
CIE-LABlab(39.66, 45.84, -66.45)
CIE-LCHlch(39.66, 80.73, 304.60°)
OKLaboklab(49.95% 0.0532 -0.1909)
OKLCHoklch(49.95% 0.198 285.6)
XYZxyz(17.7432, 11.0478, 58.3125)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45CC #B2CC45
analogous
#456ECC #5F45CC #A345CC
triadic
#5F45CC #CC5F45 #45CC5F
tetradic
#5F45CC #CC456E #B2CC45 #45CCA3
square
#5F45CC #CC456E #B2CC45 #45CCA3
split-complementary
#5F45CC #CCA345 #6ECC45
monochromatic
#312076 #452EA6 #5F45CC #8875D9 #B2A5E6

Accessibility & contrast

On white

6.54
#5F45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5F45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45CC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45CC#FFFFFF#000000##FFFFFF
##5F45CC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#316783
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f45cc;
/* rgb */ color: rgb(95, 69, 204);
/* oklch */ color: oklch(49.9% 0.198 285.6);
Tailwind
colors: {
  custom: {
    50: '#967add',
    500: '#5f45cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f45cc;
$custom-light: #967add;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45cc",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 251.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49949,
    "c": 0.19813,
    "h": 285.6
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#5F45CC
secondary
#C8D399
accent
#E048C3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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