#5835BF#5835BF

#5835BF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.201 H 287.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5835BF
RGBrgb(88, 53, 191)
HSLhsl(255, 57%, 48%)
HSVhsv(255, 72%, 75%)
CMYKcmyk(53.9%, 72.3%, 0%, 25.1%)
CIE-LABlab(34.77, 49.56, -66.90)
CIE-LCHlch(34.77, 83.26, 306.53°)
OKLaboklab(45.95% 0.0596 -0.1924)
OKLCHoklch(45.95% 0.201 287.2)
XYZxyz(14.6988, 8.3817, 50.1234)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5835BF #9CBF35
analogous
#3557BF #5835BF #9D35BF
triadic
#5835BF #BF5835 #35BF58
tetradic
#5835BF #BF3557 #9CBF35 #35BF9D
square
#5835BF #BF3557 #9CBF35 #35BF9D
split-complementary
#5835BF #BF9D35 #57BF35
monochromatic
#2C1A5F #42288F #5835BF #7C5FD3 #A38FE0

Accessibility & contrast

On white

7.85
#5835BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5835BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5835BF
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5835BF#FFFFFF#000000##FFFFFF
##5835BF1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#2D5A77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5835bf;
/* rgb */ color: rgb(88, 53, 191);
/* oklch */ color: oklch(46.0% 0.201 287.2);
Tailwind
colors: {
  custom: {
    50: '#9270d3',
    500: '#5835bf',
    950: '#000000',
  },
}
SCSS
$custom: #5835bf;
$custom-light: #9270d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5835bf",
  "rgb": {
    "r": 88,
    "g": 53,
    "b": 191
  },
  "hsl": {
    "h": 255.217,
    "s": 56.557,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4595,
    "c": 0.20139,
    "h": 287.2
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#5835BF
secondary
#B9CA85
accent
#E048B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5835BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5835BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva