#5335D3#5335D3

#5335D3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.225 H 282.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5335D3
RGBrgb(83, 53, 211)
HSLhsl(251, 64%, 52%)
HSVhsv(251, 75%, 83%)
CMYKcmyk(60.7%, 74.9%, 0%, 17.3%)
CIE-LABlab(36.15, 54.66, -76.29)
CIE-LCHlch(36.15, 93.86, 305.62°)
OKLaboklab(47.38% 0.0478 -0.22)
OKLCHoklch(47.38% 0.225 282.3)
XYZxyz(16.5946, 9.0872, 62.4949)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335D3 #B5D335
analogous
#3566D3 #5335D3 #A235D3
triadic
#5335D3 #D35335 #35D353
tetradic
#5335D3 #D33566 #B5D335 #35D3A2
square
#5335D3 #D33566 #B5D335 #35D3A2
split-complementary
#5335D3 #D3A235 #66D335
monochromatic
#2B1974 #3D24A7 #5335D3 #7E67DE #A99AE9

Accessibility & contrast

On white

7.45
#5335D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5335D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335D3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335D3#FFFFFF#000000##FFFFFF
##5335D31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#006282
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5335d3;
/* rgb */ color: rgb(83, 53, 211);
/* oklch */ color: oklch(47.4% 0.225 282.3);
Tailwind
colors: {
  custom: {
    50: '#9270e2',
    500: '#5335d3',
    950: '#000000',
  },
}
SCSS
$custom: #5335d3;
$custom-light: #9270e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5335d3",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 211
  },
  "hsl": {
    "h": 251.392,
    "s": 64.228,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47377,
    "c": 0.22514,
    "h": 282.3
  },
  "luminance": 0.09088
}

Semantic roles & 50–950 ramp

primary
#5335D3
secondary
#C7D58F
accent
#E741C8
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5335D3

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

Preview Lab → · Contrast checker → · Palette generator →

#5335D3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva