#5945BC#5945BC

#5945BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.1% C 0.179 H 285.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5945BC
RGBrgb(89, 69, 188)
HSLhsl(250, 47%, 50%)
HSVhsv(250, 63%, 74%)
CMYKcmyk(52.7%, 63.3%, 0%, 26.3%)
CIE-LABlab(37.86, 39.97, -60.08)
CIE-LCHlch(37.86, 72.16, 303.63°)
OKLaboklab(48.12% 0.0468 -0.1723)
OKLCHoklch(48.12% 0.179 285.2)
XYZxyz(15.3223, 10.0101, 48.6920)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5945BC #A8BC45
analogous
#456CBC #5945BC #9445BC
triadic
#5945BC #BC5945 #45BC59
tetradic
#5945BC #BC456C #A8BC45 #45BC94
square
#5945BC #BC456C #A8BC45 #45BC94
split-complementary
#5945BC #BC9445 #6CBC45
monochromatic
#2E2463 #433490 #5945BC #8172CC #A99FDC

Accessibility & contrast

On white

6.99
#5945BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5945BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5945BC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5945BC#FFFFFF#000000##FFFFFF
##5945BC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#31627A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5945bc;
/* rgb */ color: rgb(89, 69, 188);
/* oklch */ color: oklch(48.1% 0.179 285.2);
Tailwind
colors: {
  custom: {
    50: '#907ad1',
    500: '#5945bc',
    950: '#000000',
  },
}
SCSS
$custom: #5945bc;
$custom-light: #907ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5945bc",
  "rgb": {
    "r": 89,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 250.084,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4812,
    "c": 0.17858,
    "h": 285.2
  },
  "luminance": 0.10011
}

Semantic roles & 50–950 ramp

primary
#5945BC
secondary
#C0C994
accent
#D751C0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5945BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5945BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva