#5935BE#5935BE

#5935BE is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.200 H 287.8°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5935BE
RGBrgb(89, 53, 190)
HSLhsl(256, 56%, 48%)
HSVhsv(256, 72%, 75%)
CMYKcmyk(53.2%, 72.1%, 0%, 25.5%)
CIE-LABlab(34.78, 49.43, -66.29)
CIE-LCHlch(34.78, 82.69, 306.71°)
OKLaboklab(45.95% 0.0613 -0.1906)
OKLCHoklch(45.95% 0.2 287.8)
XYZxyz(14.6845, 8.3870, 49.5503)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935BE #9ABE35
analogous
#3556BE #5935BE #9D35BE
triadic
#5935BE #BE5935 #35BE59
tetradic
#5935BE #BE3556 #9ABE35 #35BE9D
square
#5935BE #BE3556 #9ABE35 #35BE9D
split-complementary
#5935BE #BE9D35 #56BE35
monochromatic
#2C1A5E #43288E #5935BE #7D5ED2 #A38EDF

Accessibility & contrast

On white

7.84
#5935BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5935BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935BE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935BE#FFFFFF#000000##FFFFFF
##5935BE1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#315A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5935be;
/* rgb */ color: rgb(89, 53, 190);
/* oklch */ color: oklch(46.0% 0.200 287.8);
Tailwind
colors: {
  custom: {
    50: '#9270d3',
    500: '#5935be',
    950: '#000000',
  },
}
SCSS
$custom: #5935be;
$custom-light: #9270d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5935be",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 255.766,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45954,
    "c": 0.20017,
    "h": 287.8
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#5935BE
secondary
#B8CA85
accent
#E048B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5935BE

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

Preview Lab → · Contrast checker → · Palette generator →

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