#5232BC#5232BC

#5232BC is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.7% C 0.202 H 285.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5232BC
RGBrgb(82, 50, 188)
HSLhsl(254, 58%, 47%)
HSVhsv(254, 73%, 74%)
CMYKcmyk(56.4%, 73.4%, 0%, 26.3%)
CIE-LABlab(33.36, 49.36, -67.46)
CIE-LCHlch(33.36, 83.59, 306.19°)
OKLaboklab(44.73% 0.054 -0.1942)
OKLCHoklch(44.73% 0.202 285.5)
XYZxyz(13.6946, 7.7051, 48.3328)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232BC #9CBC32
analogous
#3257BC #5232BC #9732BC
triadic
#5232BC #BC5232 #32BC52
tetradic
#5232BC #BC3257 #9CBC32 #32BC97
square
#5232BC #BC3257 #9CBC32 #32BC97
split-complementary
#5232BC #BC9732 #57BC32
monochromatic
#28185B #3D258C #5232BC #7558D3 #9D89E0

Accessibility & contrast

On white

8.26
#5232BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5232BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232BC
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232BC#FFFFFF#000000##FFFFFF
##5232BC1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#1F5874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5232bc;
/* rgb */ color: rgb(82, 50, 188);
/* oklch */ color: oklch(44.7% 0.202 285.5);
Tailwind
colors: {
  custom: {
    50: '#8e6dd1',
    500: '#5232bc',
    950: '#000000',
  },
}
SCSS
$custom: #5232bc;
$custom-light: #8e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5232bc",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 188
  },
  "hsl": {
    "h": 253.913,
    "s": 57.983,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44734,
    "c": 0.20156,
    "h": 285.5
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#5232BC
secondary
#B9C980
accent
#E147BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5232BC

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

Preview Lab → · Contrast checker → · Palette generator →

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