#5233B3#5233B3

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

Color values

HEX#5233B3
RGBrgb(82, 51, 179)
HSLhsl(255, 56%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(54.2%, 71.5%, 0%, 29.8%)
CIE-LABlab(32.73, 46.21, -63.16)
CIE-LCHlch(32.73, 78.26, 306.19°)
OKLaboklab(44.04% 0.0551 -0.1816)
OKLCHoklch(44.04% 0.19 286.9)
XYZxyz(12.7978, 7.4155, 43.3961)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5233B3 #94B333
analogous
#3354B3 #5233B3 #9233B3
triadic
#5233B3 #B35233 #33B352
tetradic
#5233B3 #B33354 #94B333 #33B392
square
#5233B3 #B33354 #94B333 #33B392
split-complementary
#5233B3 #B39233 #54B333
monochromatic
#261854 #3C2583 #5233B3 #7255CE #9A84DC

Accessibility & contrast

On white

8.46
#5233B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5233B3
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5233B3#FFFFFF#000000##FFFFFF
##5233B31.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#2A556F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5233b3;
/* rgb */ color: rgb(82, 51, 179);
/* oklch */ color: oklch(44.0% 0.190 286.9);
Tailwind
colors: {
  custom: {
    50: '#8c6ecb',
    500: '#5233b3',
    950: '#000000',
  },
}
SCSS
$custom: #5233b3;
$custom-light: #8c6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5233b3",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 179
  },
  "hsl": {
    "h": 254.531,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44041,
    "c": 0.18978,
    "h": 286.9
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5233B3

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

Preview Lab → · Contrast checker → · Palette generator →

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