#5942BA#5942BA

#5942BA is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.5% C 0.180 H 286.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5942BA
RGBrgb(89, 66, 186)
HSLhsl(252, 48%, 49%)
HSVhsv(252, 65%, 73%)
CMYKcmyk(52.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(37.05, 41.11, -60.22)
CIE-LCHlch(37.05, 72.92, 304.32°)
OKLaboklab(47.48% 0.05 -0.1728)
OKLCHoklch(47.48% 0.18 286.1)
XYZxyz(14.9283, 9.5647, 47.5044)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942BA #A3BA42
analogous
#4267BA #5942BA #9542BA
triadic
#5942BA #BA5942 #42BA59
tetradic
#5942BA #BA4267 #A3BA42 #42BA95
square
#5942BA #BA4267 #A3BA42 #42BA95
split-complementary
#5942BA #BA9542 #67BA42
monochromatic
#2E2260 #43328D #5942BA #806ECB #A79BDB

Accessibility & contrast

On white

7.21
#5942BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5942BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5942BA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942BA#FFFFFF#000000##FFFFFF
##5942BA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#335F78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5942ba;
/* rgb */ color: rgb(89, 66, 186);
/* oklch */ color: oklch(47.5% 0.180 286.1);
Tailwind
colors: {
  custom: {
    50: '#9078d0',
    500: '#5942ba',
    950: '#000000',
  },
}
SCSS
$custom: #5942ba;
$custom-light: #9078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5942ba",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 251.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47482,
    "c": 0.17986,
    "h": 286.1
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#5942BA
secondary
#BDC890
accent
#D751BD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5942BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5942BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva