#5935B3#5935B3

#5935B3 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.187 H 289.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5935B3
RGBrgb(89, 53, 179)
HSLhsl(257, 54%, 45%)
HSVhsv(257, 70%, 70%)
CMYKcmyk(50.3%, 70.4%, 0%, 29.8%)
CIE-LABlab(33.82, 46.29, -61.35)
CIE-LCHlch(33.82, 76.85, 307.04°)
OKLaboklab(44.99% 0.0635 -0.1761)
OKLCHoklch(44.99% 0.187 289.8)
XYZxyz(13.5273, 7.9242, 43.4558)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935B3 #8FB335
analogous
#3550B3 #5935B3 #9835B3
triadic
#5935B3 #B35935 #35B359
tetradic
#5935B3 #B33550 #8FB335 #35B398
square
#5935B3 #B33550 #8FB335 #35B398
split-complementary
#5935B3 #B39835 #50B335
monochromatic
#2A1955 #422784 #5935B3 #7958CD #9F87DB

Accessibility & contrast

On white

8.12
#5935B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5935B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935B3
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935B3#FFFFFF#000000##FFFFFF
##5935B31.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#3A5570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5935b3;
/* rgb */ color: rgb(89, 53, 179);
/* oklch */ color: oklch(45.0% 0.187 289.8);
Tailwind
colors: {
  custom: {
    50: '#906fcb',
    500: '#5935b3',
    950: '#000000',
  },
}
SCSS
$custom: #5935b3;
$custom-light: #906fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5935b3",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 257.143,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44985,
    "c": 0.18715,
    "h": 289.8
  },
  "luminance": 0.07925
}

Semantic roles & 50–950 ramp

primary
#5935B3
secondary
#B1C57F
accent
#DE4AB4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5935B3

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

Preview Lab → · Contrast checker → · Palette generator →

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