#5233B4#5233B4

#5233B4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.191 H 286.7°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5233B4
RGBrgb(82, 51, 180)
HSLhsl(254, 56%, 45%)
HSVhsv(254, 72%, 71%)
CMYKcmyk(54.4%, 71.7%, 0%, 29.4%)
CIE-LABlab(32.82, 46.50, -63.61)
CIE-LCHlch(32.82, 78.79, 306.17°)
OKLaboklab(44.13% 0.0549 -0.1829)
OKLCHoklch(44.13% 0.191 286.7)
XYZxyz(12.8993, 7.4561, 43.9306)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233B4 #95B433
analogous
#3354B4 #5233B4 #9333B4
triadic
#5233B4 #B45233 #33B452
tetradic
#5233B4 #B43354 #95B433 #33B493
square
#5233B4 #B43354 #95B433 #33B493
split-complementary
#5233B4 #B49333 #54B433
monochromatic
#271855 #3C2584 #5233B4 #7355CF #9A85DC

Accessibility & contrast

On white

8.43
#5233B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5233B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233B4
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233B4#FFFFFF#000000##FFFFFF
##5233B41.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#295570
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5233b4;
/* rgb */ color: rgb(82, 51, 180);
/* oklch */ color: oklch(44.1% 0.191 286.7);
Tailwind
colors: {
  custom: {
    50: '#8d6ecc',
    500: '#5233b4',
    950: '#000000',
  },
}
SCSS
$custom: #5233b4;
$custom-light: #8d6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5233b4",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 180
  },
  "hsl": {
    "h": 254.419,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44131,
    "c": 0.19098,
    "h": 286.7
  },
  "luminance": 0.07457
}

Semantic roles & 50–950 ramp

primary
#5233B4
secondary
#B4C67D
accent
#DF49BB
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5233B4

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

Preview Lab → · Contrast checker → · Palette generator →

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