#5B45C8#5B45C8

#5B45C8 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.3% C 0.194 H 284.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5B45C8
RGBrgb(91, 69, 200)
HSLhsl(250, 54%, 53%)
HSVhsv(250, 66%, 78%)
CMYKcmyk(54.5%, 65.5%, 0%, 21.6%)
CIE-LABlab(38.98, 43.96, -65.25)
CIE-LCHlch(38.98, 78.68, 303.97°)
OKLaboklab(49.27% 0.0483 -0.1875)
OKLCHoklch(49.27% 0.194 284.4)
XYZxyz(16.8647, 10.6496, 55.7993)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45C8 #B2C845
analogous
#4571C8 #5B45C8 #9C45C8
triadic
#5B45C8 #C85B45 #45C85B
tetradic
#5B45C8 #C84571 #B2C845 #45C89C
square
#5B45C8 #C84571 #B2C845 #45C89C
split-complementary
#5B45C8 #C89C45 #71C845
monochromatic
#2F2171 #422FA0 #5B45C8 #8574D6 #AEA3E4

Accessibility & contrast

On white

6.71
#5B45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5B45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B45C8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45C8#FFFFFF#000000##FFFFFF
##5B45C81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#2A6680
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b45c8;
/* rgb */ color: rgb(91, 69, 200);
/* oklch */ color: oklch(49.3% 0.194 284.4);
Tailwind
colors: {
  custom: {
    50: '#937ada',
    500: '#5b45c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b45c8;
$custom-light: #937ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45c8",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 250.076,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49273,
    "c": 0.19358,
    "h": 284.4
  },
  "luminance": 0.10651
}

Semantic roles & 50–950 ramp

primary
#5B45C8
secondary
#C7D198
accent
#DE4AC5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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