#5936B2#5936B2

#5936B2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.185 H 289.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5936B2
RGBrgb(89, 54, 178)
HSLhsl(257, 53%, 45%)
HSVhsv(257, 70%, 70%)
CMYKcmyk(50%, 69.7%, 0%, 30.2%)
CIE-LABlab(33.93, 45.47, -60.58)
CIE-LCHlch(33.93, 75.74, 306.89°)
OKLaboklab(45.04% 0.0628 -0.1738)
OKLCHoklch(45.04% 0.185 289.9)
XYZxyz(13.4726, 7.9760, 42.9405)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5936B2 #8FB236
analogous
#3651B2 #5936B2 #9736B2
triadic
#5936B2 #B25936 #36B259
tetradic
#5936B2 #B23651 #8FB236 #36B297
square
#5936B2 #B23651 #8FB236 #36B297
split-complementary
#5936B2 #B29736 #51B236
monochromatic
#2A1A54 #422883 #5936B2 #7959CD #9F88DB

Accessibility & contrast

On white

8.09
#5936B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5936B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5936B2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5936B2#FFFFFF#000000##FFFFFF
##5936B21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#3A5670
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5936b2;
/* rgb */ color: rgb(89, 54, 178);
/* oklch */ color: oklch(45.0% 0.185 289.9);
Tailwind
colors: {
  custom: {
    50: '#9070ca',
    500: '#5936b2',
    950: '#000000',
  },
}
SCSS
$custom: #5936b2;
$custom-light: #9070ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5936b2",
  "rgb": {
    "r": 89,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 256.935,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.18477,
    "h": 289.9
  },
  "luminance": 0.07977
}

Semantic roles & 50–950 ramp

primary
#5936B2
secondary
#B1C57F
accent
#DD4BB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5936B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5936B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva