#5942CB#5942CB

#5942CB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.9% C 0.201 H 283.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5942CB
RGBrgb(89, 66, 203)
HSLhsl(250, 57%, 53%)
HSVhsv(250, 67%, 80%)
CMYKcmyk(56.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(38.43, 46.24, -67.90)
CIE-LCHlch(38.43, 82.15, 304.25°)
OKLaboklab(48.91% 0.0478 -0.1953)
OKLCHoklch(48.91% 0.201 283.8)
XYZxyz(16.8442, 10.3310, 57.5948)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942CB #B4CB42
analogous
#426FCB #5942CB #9D42CB
triadic
#5942CB #CB5942 #42CB59
tetradic
#5942CB #CB426F #B4CB42 #42CB9D
square
#5942CB #CB426F #B4CB42 #42CB9D
split-complementary
#5942CB #CB9D42 #6FCB42
monochromatic
#2E2073 #412DA3 #5942CB #8372D8 #ADA2E5

Accessibility & contrast

On white

6.85
#5942CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5942CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942CB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942CB#FFFFFF#000000##FFFFFF
##5942CB1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#206581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5942cb;
/* rgb */ color: rgb(89, 66, 203);
/* oklch */ color: oklch(48.9% 0.201 283.8);
Tailwind
colors: {
  custom: {
    50: '#9378dc',
    500: '#5942cb',
    950: '#000000',
  },
}
SCSS
$custom: #5942cb;
$custom-light: #9378dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5942cb",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 250.073,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.2011,
    "h": 283.8
  },
  "luminance": 0.10332
}

Semantic roles & 50–950 ramp

primary
#5942CB
secondary
#C8D297
accent
#E048C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5942CB

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

Preview Lab → · Contrast checker → · Palette generator →

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