#5935C5#5935C5

#5935C5 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.208 H 286.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5935C5
RGBrgb(89, 53, 197)
HSLhsl(255, 58%, 49%)
HSVhsv(255, 73%, 77%)
CMYKcmyk(54.8%, 73.1%, 0%, 22.7%)
CIE-LABlab(35.40, 51.43, -69.37)
CIE-LCHlch(35.40, 86.35, 306.55°)
OKLaboklab(46.59% 0.0597 -0.1996)
OKLCHoklch(46.59% 0.208 286.7)
XYZxyz(15.4680, 8.7004, 53.6768)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935C5 #A1C535
analogous
#3559C5 #5935C5 #A135C5
triadic
#5935C5 #C55935 #35C559
tetradic
#5935C5 #C53559 #A1C535 #35C5A1
square
#5935C5 #C53559 #A1C535 #35C5A1
split-complementary
#5935C5 #C5A135 #59C535
monochromatic
#2D1B65 #432895 #5935C5 #7F62D5 #A693E2

Accessibility & contrast

On white

7.66
#5935C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5935C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5935C5
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935C5#FFFFFF#000000##FFFFFF
##5935C51.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#2A5C7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5935c5;
/* rgb */ color: rgb(89, 53, 197);
/* oklch */ color: oklch(46.6% 0.208 286.7);
Tailwind
colors: {
  custom: {
    50: '#9370d8',
    500: '#5935c5',
    950: '#000000',
  },
}
SCSS
$custom: #5935c5;
$custom-light: #9370d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5935c5",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 255,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46588,
    "c": 0.20832,
    "h": 286.7
  },
  "luminance": 0.08701
}

Semantic roles & 50–950 ramp

primary
#5935C5
secondary
#BCCD89
accent
#E147BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5935C5

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

Preview Lab → · Contrast checker → · Palette generator →

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