#5F45CD#5F45CD

#5F45CD is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.0% C 0.199 H 285.4°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5F45CD
RGBrgb(95, 69, 205)
HSLhsl(251, 58%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(53.7%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.74, 46.14, -66.90)
CIE-LCHlch(39.74, 81.27, 304.59°)
OKLaboklab(50.03% 0.053 -0.1922)
OKLCHoklch(50.03% 0.199 285.4)
XYZxyz(17.8636, 11.0959, 58.9462)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45CD #B3CD45
analogous
#456FCD #5F45CD #A345CD
triadic
#5F45CD #CD5F45 #45CD5F
tetradic
#5F45CD #CD456F #B3CD45 #45CDA3
square
#5F45CD #CD456F #B3CD45 #45CDA3
split-complementary
#5F45CD #CDA345 #6FCD45
monochromatic
#312077 #452DA8 #5F45CD #8875DA #B2A5E7

Accessibility & contrast

On white

6.52
#5F45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5F45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45CD
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45CD#FFFFFF#000000##FFFFFF
##5F45CD1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#306783
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f45cd;
/* rgb */ color: rgb(95, 69, 205);
/* oklch */ color: oklch(50.0% 0.199 285.4);
Tailwind
colors: {
  custom: {
    50: '#967add',
    500: '#5f45cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f45cd;
$custom-light: #967add;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45cd",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 251.471,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50032,
    "c": 0.19936,
    "h": 285.4
  },
  "luminance": 0.11097
}

Semantic roles & 50–950 ramp

primary
#5F45CD
secondary
#C9D49A
accent
#E147C3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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