#5935A2#5935A2

#5935A2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.167 H 293.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5935A2
RGBrgb(89, 53, 162)
HSLhsl(260, 51%, 42%)
HSVhsv(260, 67%, 64%)
CMYKcmyk(45.1%, 67.3%, 0%, 36.5%)
CIE-LABlab(32.43, 41.46, -53.44)
CIE-LCHlch(32.43, 67.64, 307.81°)
OKLaboklab(43.56% 0.0663 -0.1528)
OKLCHoklch(43.56% 0.167 293.4)
XYZxyz(11.9127, 7.2783, 34.9526)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935A2 #7EA235
analogous
#3547A2 #5935A2 #9035A2
triadic
#5935A2 #A25935 #35A259
tetradic
#5935A2 #A23547 #7EA235 #35A290
square
#5935A2 #A23547 #7EA235 #35A290
split-complementary
#5935A2 #A29035 #47A235
monochromatic
#261746 #402674 #5935A2 #764FC5 #9A7DD4

Accessibility & contrast

On white

8.55
#5935A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5935A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935A2
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935A2#FFFFFF#000000##FFFFFF
##5935A21.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#444F67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5935a2;
/* rgb */ color: rgb(89, 53, 162);
/* oklch */ color: oklch(43.6% 0.167 293.4);
Tailwind
colors: {
  custom: {
    50: '#8e6fbe',
    500: '#5935a2',
    950: '#000000',
  },
}
SCSS
$custom: #5935a2;
$custom-light: #8e6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5935a2",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 259.817,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43555,
    "c": 0.16657,
    "h": 293.4
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#5935A2
secondary
#A6BD75
accent
#DA4EAC
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5935A2

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

Preview Lab → · Contrast checker → · Palette generator →

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