#5935B2#5935B2

#5935B2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.186 H 290.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5935B2
RGBrgb(89, 53, 178)
HSLhsl(257, 54%, 45%)
HSVhsv(257, 70%, 70%)
CMYKcmyk(50%, 70.2%, 0%, 30.2%)
CIE-LABlab(33.74, 46.01, -60.89)
CIE-LCHlch(33.74, 76.32, 307.07°)
OKLaboklab(44.9% 0.0637 -0.1747)
OKLCHoklch(44.9% 0.186 290)
XYZxyz(13.4265, 7.8839, 42.9251)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935B2 #8EB235
analogous
#354FB2 #5935B2 #9735B2
triadic
#5935B2 #B25935 #35B259
tetradic
#5935B2 #B2354F #8EB235 #35B297
square
#5935B2 #B2354F #8EB235 #35B297
split-complementary
#5935B2 #B29735 #4FB235
monochromatic
#2A1954 #412783 #5935B2 #7957CD #9F86DB

Accessibility & contrast

On white

8.15
#5935B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5935B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935B2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935B2#FFFFFF#000000##FFFFFF
##5935B21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#3B556F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5935b2;
/* rgb */ color: rgb(89, 53, 178);
/* oklch */ color: oklch(44.9% 0.186 290.0);
Tailwind
colors: {
  custom: {
    50: '#906fca',
    500: '#5935b2',
    950: '#000000',
  },
}
SCSS
$custom: #5935b2;
$custom-light: #906fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5935b2",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 257.28,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44898,
    "c": 0.18596,
    "h": 290
  },
  "luminance": 0.07884
}

Semantic roles & 50–950 ramp

primary
#5935B2
secondary
#B0C57E
accent
#DD4AB3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5935B2

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

Preview Lab → · Contrast checker → · Palette generator →

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