#5935AB#5935AB

#5935AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.178 H 291.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5935AB
RGBrgb(89, 53, 171)
HSLhsl(258, 53%, 44%)
HSVhsv(258, 69%, 67%)
CMYKcmyk(48%, 69%, 0%, 32.9%)
CIE-LABlab(33.16, 44.01, -57.67)
CIE-LCHlch(33.16, 72.54, 307.35°)
OKLaboklab(44.3% 0.0649 -0.1652)
OKLCHoklch(44.3% 0.178 291.4)
XYZxyz(12.7415, 7.6099, 39.3177)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935AB #87AB35
analogous
#354CAB #5935AB #9435AB
triadic
#5935AB #AB5935 #35AB59
tetradic
#5935AB #AB354C #87AB35 #35AB94
square
#5935AB #AB354C #87AB35 #35AB94
split-complementary
#5935AB #AB9435 #4CAB35
monochromatic
#28184E #41277C #5935AB #7853CA #9C82D8

Accessibility & contrast

On white

8.33
#5935AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5935AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935AB
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935AB#FFFFFF#000000##FFFFFF
##5935AB1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#3F526C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5935ab;
/* rgb */ color: rgb(89, 53, 171);
/* oklch */ color: oklch(44.3% 0.178 291.4);
Tailwind
colors: {
  custom: {
    50: '#8f6fc5',
    500: '#5935ab',
    950: '#000000',
  },
}
SCSS
$custom: #5935ab;
$custom-light: #8f6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5935ab",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 258.305,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44301,
    "c": 0.17754,
    "h": 291.4
  },
  "luminance": 0.0761
}

Semantic roles & 50–950 ramp

primary
#5935AB
secondary
#ACC27A
accent
#DC4CB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5935AB

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

Preview Lab → · Contrast checker → · Palette generator →

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