#5233B8#5233B8

#5233B8 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.196 H 286.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5233B8
RGBrgb(82, 51, 184)
HSLhsl(254, 57%, 46%)
HSVhsv(254, 72%, 72%)
CMYKcmyk(55.4%, 72.3%, 0%, 27.8%)
CIE-LABlab(33.18, 47.67, -65.39)
CIE-LCHlch(33.18, 80.93, 306.09°)
OKLaboklab(44.5% 0.0541 -0.1881)
OKLCHoklch(44.5% 0.196 286)
XYZxyz(13.3126, 7.6214, 46.1077)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233B8 #99B833
analogous
#3356B8 #5233B8 #9433B8
triadic
#5233B8 #B85233 #33B852
tetradic
#5233B8 #B83356 #99B833 #33B894
square
#5233B8 #B83356 #99B833 #33B894
split-complementary
#5233B8 #B89433 #56B833
monochromatic
#271858 #3D2688 #5233B8 #7458D1 #9C88DE

Accessibility & contrast

On white

8.32
#5233B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5233B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5233B8
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233B8#FFFFFF#000000##FFFFFF
##5233B81.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#245772
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5233b8;
/* rgb */ color: rgb(82, 51, 184);
/* oklch */ color: oklch(44.5% 0.196 286.0);
Tailwind
colors: {
  custom: {
    50: '#8d6ece',
    500: '#5233b8',
    950: '#000000',
  },
}
SCSS
$custom: #5233b8;
$custom-light: #8d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5233b8",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 253.985,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44495,
    "c": 0.19576,
    "h": 286
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#5233B8
secondary
#B7C87F
accent
#E048BC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5233B8

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

Preview Lab → · Contrast checker → · Palette generator →

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