#5C45CB#5C45CB

#5C45CB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.197 H 284.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5C45CB
RGBrgb(92, 69, 203)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 66%, 80%)
CMYKcmyk(54.7%, 66%, 0%, 20.4%)
CIE-LABlab(39.31, 45.04, -66.45)
CIE-LCHlch(39.31, 80.27, 304.13°)
OKLaboklab(49.61% 0.0492 -0.191)
OKLCHoklch(49.61% 0.197 284.5)
XYZxyz(17.3180, 10.8424, 57.6686)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C45CB #B4CB45
analogous
#4571CB #5C45CB #9F45CB
triadic
#5C45CB #CB5C45 #45CB5C
tetradic
#5C45CB #CB4571 #B4CB45 #45CB9F
square
#5C45CB #CB4571 #B4CB45 #45CB9F
split-complementary
#5C45CB #CB9F45 #71CB45
monochromatic
#2F2175 #422EA5 #5C45CB #8675D8 #B0A5E6

Accessibility & contrast

On white

6.63
#5C45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5C45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C45CB
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C45CB#FFFFFF#000000##FFFFFF
##5C45CB1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#2A6782
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5c45cb;
/* rgb */ color: rgb(92, 69, 203);
/* oklch */ color: oklch(49.6% 0.197 284.5);
Tailwind
colors: {
  custom: {
    50: '#947adc',
    500: '#5c45cb',
    950: '#000000',
  },
}
SCSS
$custom: #5c45cb;
$custom-light: #947adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c45cb",
  "rgb": {
    "r": 92,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 250.299,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49609,
    "c": 0.1972,
    "h": 284.5
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#5C45CB
secondary
#C9D399
accent
#E048C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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