#5233B2#5233B2

#5233B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.189 H 287.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5233B2
RGBrgb(82, 51, 178)
HSLhsl(255, 55%, 45%)
HSVhsv(255, 71%, 70%)
CMYKcmyk(53.9%, 71.3%, 0%, 30.2%)
CIE-LABlab(32.65, 45.92, -62.71)
CIE-LCHlch(32.65, 77.72, 306.21°)
OKLaboklab(43.95% 0.0553 -0.1803)
OKLCHoklch(43.95% 0.189 287.1)
XYZxyz(12.6970, 7.3752, 42.8654)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233B2 #93B233
analogous
#3353B2 #5233B2 #9233B2
triadic
#5233B2 #B25233 #33B252
tetradic
#5233B2 #B23353 #93B233 #33B292
square
#5233B2 #B23353 #93B233 #33B292
split-complementary
#5233B2 #B29233 #53B233
monochromatic
#261853 #3C2582 #5233B2 #7254CE #9984DC

Accessibility & contrast

On white

8.48
#5233B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5233B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233B2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233B2#FFFFFF#000000##FFFFFF
##5233B21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#2B556F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5233b2;
/* rgb */ color: rgb(82, 51, 178);
/* oklch */ color: oklch(44.0% 0.189 287.1);
Tailwind
colors: {
  custom: {
    50: '#8c6dca',
    500: '#5233b2',
    950: '#000000',
  },
}
SCSS
$custom: #5233b2;
$custom-light: #8c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5233b2",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 254.646,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43951,
    "c": 0.18857,
    "h": 287.1
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#5233B2
secondary
#B3C57C
accent
#DF49BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5233B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5233B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva