#5B45CA#5B45CA

#5B45CA is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.4% C 0.196 H 284.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5B45CA
RGBrgb(91, 69, 202)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 66%, 79%)
CMYKcmyk(55%, 65.8%, 0%, 20.8%)
CIE-LABlab(39.15, 44.57, -66.15)
CIE-LCHlch(39.15, 79.76, 303.97°)
OKLaboklab(49.44% 0.048 -0.1901)
OKLCHoklch(49.44% 0.196 284.2)
XYZxyz(17.0999, 10.7437, 57.0383)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45CA #B4CA45
analogous
#4571CA #5B45CA #9E45CA
triadic
#5B45CA #CA5B45 #45CA5B
tetradic
#5B45CA #CA4571 #B4CA45 #45CA9E
square
#5B45CA #CA4571 #B4CA45 #45CA9E
split-complementary
#5B45CA #CA9E45 #71CA45
monochromatic
#2F2174 #422FA3 #5B45CA #8575D8 #AFA4E5

Accessibility & contrast

On white

6.67
#5B45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5B45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45CA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45CA#FFFFFF#000000##FFFFFF
##5B45CA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#286781
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b45ca;
/* rgb */ color: rgb(91, 69, 202);
/* oklch */ color: oklch(49.4% 0.196 284.2);
Tailwind
colors: {
  custom: {
    50: '#947adb',
    500: '#5b45ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b45ca;
$custom-light: #947adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45ca",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 249.925,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4944,
    "c": 0.19608,
    "h": 284.2
  },
  "luminance": 0.10745
}

Semantic roles & 50–950 ramp

primary
#5B45CA
secondary
#C9D299
accent
#DF49C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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