#5B45CB#5B45CB

#5B45CB is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.5% C 0.197 H 284.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5B45CB
RGBrgb(91, 69, 203)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 66%, 80%)
CMYKcmyk(55.2%, 66%, 0%, 20.4%)
CIE-LABlab(39.23, 44.87, -66.59)
CIE-LCHlch(39.23, 80.30, 303.97°)
OKLaboklab(49.52% 0.0479 -0.1914)
OKLCHoklch(49.52% 0.197 284)
XYZxyz(17.2187, 10.7912, 57.6639)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45CB #B5CB45
analogous
#4572CB #5B45CB #9E45CB
triadic
#5B45CB #CB5B45 #45CB5B
tetradic
#5B45CB #CB4572 #B5CB45 #45CB9E
square
#5B45CB #CB4572 #B5CB45 #45CB9E
split-complementary
#5B45CB #CB9E45 #72CB45
monochromatic
#2F2175 #422EA5 #5B45CB #8575D8 #AFA5E6

Accessibility & contrast

On white

6.65
#5B45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5B45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45CB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45CB#FFFFFF#000000##FFFFFF
##5B45CB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#276782
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b45cb;
/* rgb */ color: rgb(91, 69, 203);
/* oklch */ color: oklch(49.5% 0.197 284.0);
Tailwind
colors: {
  custom: {
    50: '#947adc',
    500: '#5b45cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b45cb;
$custom-light: #947adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45cb",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 249.851,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49524,
    "c": 0.19732,
    "h": 284
  },
  "luminance": 0.10792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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