#5937DB#5937DB

#5937DB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.232 H 283.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5937DB
RGBrgb(89, 55, 219)
HSLhsl(252, 69%, 54%)
HSVhsv(252, 75%, 86%)
CMYKcmyk(59.4%, 74.9%, 0%, 14.1%)
CIE-LABlab(37.79, 56.71, -78.19)
CIE-LCHlch(37.79, 96.59, 305.95°)
OKLaboklab(48.89% 0.053 -0.2254)
OKLCHoklch(48.89% 0.232 283.2)
XYZxyz(18.2682, 9.9695, 67.9657)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937DB #B9DB37
analogous
#3767DB #5937DB #AB37DB
triadic
#5937DB #DB5937 #37DB59
tetradic
#5937DB #DB3767 #B9DB37 #37DBAB
square
#5937DB #DB3767 #B9DB37 #37DBAB
split-complementary
#5937DB #DBAB37 #67DB37
monochromatic
#2D1780 #3F20B4 #5937DB #846BE4 #AF9FEE

Accessibility & contrast

On white

7.01
#5937DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5937DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937DB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937DB#FFFFFF#000000##FFFFFF
##5937DB1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5937db;
/* rgb */ color: rgb(89, 55, 219);
/* oklch */ color: oklch(48.9% 0.232 283.2);
Tailwind
colors: {
  custom: {
    50: '#9672e7',
    500: '#5937db',
    950: '#000000',
  },
}
SCSS
$custom: #5937db;
$custom-light: #9672e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5937db",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 219
  },
  "hsl": {
    "h": 252.439,
    "s": 69.492,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48886,
    "c": 0.23154,
    "h": 283.2
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#5937DB
secondary
#CBDA94
accent
#EC3BC8
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5937DB

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

Preview Lab → · Contrast checker → · Palette generator →

#5937DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva