#5935AF#5935AF

#5935AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.182 H 290.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5935AF
RGBrgb(89, 53, 175)
HSLhsl(258, 54%, 45%)
HSVhsv(258, 70%, 69%)
CMYKcmyk(49.1%, 69.7%, 0%, 31.4%)
CIE-LABlab(33.49, 45.15, -59.52)
CIE-LCHlch(33.49, 74.71, 307.19°)
OKLaboklab(44.64% 0.0642 -0.1707)
OKLCHoklch(44.64% 0.182 290.6)
XYZxyz(13.1286, 7.7647, 41.3561)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935AF #8BAF35
analogous
#354EAF #5935AF #9635AF
triadic
#5935AF #AF5935 #35AF59
tetradic
#5935AF #AF354E #8BAF35 #35AF96
square
#5935AF #AF354E #8BAF35 #35AF96
split-complementary
#5935AF #AF9635 #4EAF35
monochromatic
#291951 #412780 #5935AF #7856CC #9E85DA

Accessibility & contrast

On white

8.23
#5935AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5935AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935AF
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935AF#FFFFFF#000000##FFFFFF
##5935AF1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#3D546E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5935af;
/* rgb */ color: rgb(89, 53, 175);
/* oklch */ color: oklch(44.6% 0.182 290.6);
Tailwind
colors: {
  custom: {
    50: '#906fc8',
    500: '#5935af',
    950: '#000000',
  },
}
SCSS
$custom: #5935af;
$custom-light: #906fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5935af",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 257.705,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4464,
    "c": 0.18237,
    "h": 290.6
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#5935AF
secondary
#AEC47C
accent
#DD4BB2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5935AF

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

Preview Lab → · Contrast checker → · Palette generator →

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