#5232B3#5232B3

#5232B3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.191 H 287.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5232B3
RGBrgb(82, 50, 179)
HSLhsl(255, 56%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(54.2%, 72.1%, 0%, 29.8%)
CIE-LABlab(32.54, 46.74, -63.47)
CIE-LCHlch(32.54, 78.82, 306.37°)
OKLaboklab(43.91% 0.056 -0.1825)
OKLCHoklch(43.91% 0.191 287.1)
XYZxyz(12.7545, 7.3291, 43.3817)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232B3 #93B332
analogous
#3252B3 #5232B3 #9332B3
triadic
#5232B3 #B35232 #32B352
tetradic
#5232B3 #B33252 #93B332 #32B393
square
#5232B3 #B33252 #93B332 #32B393
split-complementary
#5232B3 #B39332 #52B332
monochromatic
#261753 #3C2583 #5232B3 #7253CF #9983DC

Accessibility & contrast

On white

8.52
#5232B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5232B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232B3
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232B3#FFFFFF#000000##FFFFFF
##5232B31.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5232b3;
/* rgb */ color: rgb(82, 50, 179);
/* oklch */ color: oklch(43.9% 0.191 287.1);
Tailwind
colors: {
  custom: {
    50: '#8d6dcb',
    500: '#5232b3',
    950: '#000000',
  },
}
SCSS
$custom: #5232b3;
$custom-light: #8d6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5232b3",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 179
  },
  "hsl": {
    "h": 254.884,
    "s": 56.332,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43906,
    "c": 0.1909,
    "h": 287.1
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#5232B3
secondary
#B3C67B
accent
#E048BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232B3

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

Preview Lab → · Contrast checker → · Palette generator →

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