#5335B3#5335B3

#5335B3 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.187 H 287.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5335B3
RGBrgb(83, 53, 179)
HSLhsl(254, 54%, 45%)
HSVhsv(254, 70%, 70%)
CMYKcmyk(53.6%, 70.4%, 0%, 29.8%)
CIE-LABlab(33.22, 45.29, -62.36)
CIE-LCHlch(33.22, 77.07, 305.99°)
OKLaboklab(44.41% 0.0549 -0.1792)
OKLCHoklch(44.41% 0.187 287)
XYZxyz(12.9747, 7.6392, 43.4299)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5335B3 #95B335
analogous
#3556B3 #5335B3 #9235B3
triadic
#5335B3 #B35335 #35B353
tetradic
#5335B3 #B33556 #95B335 #35B392
square
#5335B3 #B33556 #95B335 #35B392
split-complementary
#5335B3 #B39235 #56B335
monochromatic
#271955 #3D2784 #5335B3 #7458CD #9B87DB

Accessibility & contrast

On white

8.31
#5335B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5335B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5335B3
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5335B3#FFFFFF#000000##FFFFFF
##5335B31.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#2C5670
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5335b3;
/* rgb */ color: rgb(83, 53, 179);
/* oklch */ color: oklch(44.4% 0.187 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6fcb',
    500: '#5335b3',
    950: '#000000',
  },
}
SCSS
$custom: #5335b3;
$custom-light: #8d6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5335b3",
  "rgb": {
    "r": 83,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 254.286,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4441,
    "c": 0.18744,
    "h": 287
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#5335B3
secondary
#B4C57F
accent
#DE4ABB
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5335B3

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

Preview Lab → · Contrast checker → · Palette generator →

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