#5233B7#5233B7

#5233B7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.195 H 286.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5233B7
RGBrgb(82, 51, 183)
HSLhsl(254, 56%, 46%)
HSVhsv(254, 72%, 72%)
CMYKcmyk(55.2%, 72.1%, 0%, 28.2%)
CIE-LABlab(33.09, 47.38, -64.95)
CIE-LCHlch(33.09, 80.39, 306.11°)
OKLaboklab(44.4% 0.0543 -0.1868)
OKLCHoklch(44.4% 0.195 286.2)
XYZxyz(13.2082, 7.5797, 45.5576)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233B7 #98B733
analogous
#3356B7 #5233B7 #9433B7
triadic
#5233B7 #B75233 #33B752
tetradic
#5233B7 #B73356 #98B733 #33B794
square
#5233B7 #B73356 #98B733 #33B794
split-complementary
#5233B7 #B79433 #56B733
monochromatic
#271857 #3D2687 #5233B7 #7357D0 #9B87DE

Accessibility & contrast

On white

8.35
#5233B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5233B7
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233B7#FFFFFF#000000##FFFFFF
##5233B71.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#255672
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5233b7;
/* rgb */ color: rgb(82, 51, 183);
/* oklch */ color: oklch(44.4% 0.195 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d6ece',
    500: '#5233b7',
    950: '#000000',
  },
}
SCSS
$custom: #5233b7;
$custom-light: #8d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5233b7",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 183
  },
  "hsl": {
    "h": 254.091,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44404,
    "c": 0.19456,
    "h": 286.2
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5233B7

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

Preview Lab → · Contrast checker → · Palette generator →

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