#5331A5#5331A5

#5331A5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.175 H 290.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5331A5
RGBrgb(83, 49, 165)
HSLhsl(258, 54%, 42%)
HSVhsv(258, 70%, 65%)
CMYKcmyk(49.7%, 70.3%, 0%, 35.3%)
CIE-LABlab(31.24, 43.38, -57.23)
CIE-LCHlch(31.24, 71.81, 307.16°)
OKLaboklab(42.62% 0.0611 -0.1641)
OKLCHoklch(42.62% 0.175 290.4)
XYZxyz(11.4552, 6.7518, 36.2897)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5331A5 #83A531
analogous
#3149A5 #5331A5 #8D31A5
triadic
#5331A5 #A55331 #31A553
tetradic
#5331A5 #A53149 #83A531 #31A58D
square
#5331A5 #A53149 #83A531 #31A58D
split-complementary
#5331A5 #A58D31 #49A531
monochromatic
#241547 #3B2376 #5331A5 #6F4AC9 #9579D7

Accessibility & contrast

On white

8.93
#5331A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5331A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5331A5
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5331A5#FFFFFF#000000##FFFFFF
##5331A51.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#384F67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5331a5;
/* rgb */ color: rgb(83, 49, 165);
/* oklch */ color: oklch(42.6% 0.175 290.4);
Tailwind
colors: {
  custom: {
    50: '#8b6cc1',
    500: '#5331a5',
    950: '#000000',
  },
}
SCSS
$custom: #5331a5;
$custom-light: #8b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5331a5",
  "rgb": {
    "r": 83,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 257.586,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.17516,
    "h": 290.4
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#5331A5
secondary
#A9C072
accent
#DE4AB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5331A5

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

Preview Lab → · Contrast checker → · Palette generator →

#5331A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva