#5232B8#5232B8

#5232B8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.197 H 286.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5232B8
RGBrgb(82, 50, 184)
HSLhsl(254, 57%, 46%)
HSVhsv(254, 73%, 72%)
CMYKcmyk(55.4%, 72.8%, 0%, 27.8%)
CIE-LABlab(33.00, 48.20, -65.70)
CIE-LCHlch(33.00, 81.48, 306.26°)
OKLaboklab(44.36% 0.0549 -0.189)
OKLCHoklch(44.36% 0.197 286.2)
XYZxyz(13.2694, 7.5350, 46.0933)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B8 #98B832
analogous
#3255B8 #5232B8 #9532B8
triadic
#5232B8 #B85232 #32B852
tetradic
#5232B8 #B83255 #98B832 #32B895
square
#5232B8 #B83255 #98B832 #32B895
split-complementary
#5232B8 #B89532 #55B832
monochromatic
#271858 #3D2588 #5232B8 #7356D1 #9B86DE

Accessibility & contrast

On white

8.38
#5232B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5232B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B8
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B8#FFFFFF#000000##FFFFFF
##5232B81.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5232b8;
/* rgb */ color: rgb(82, 50, 184);
/* oklch */ color: oklch(44.4% 0.197 286.2);
Tailwind
colors: {
  custom: {
    50: '#8d6dce',
    500: '#5232b8',
    950: '#000000',
  },
}
SCSS
$custom: #5232b8;
$custom-light: #8d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b8",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 254.328,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44363,
    "c": 0.19684,
    "h": 286.2
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#5232B8
secondary
#B6C87E
accent
#E147BC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5232B8

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

Preview Lab → · Contrast checker → · Palette generator →

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