#5232AF#5232AF

#5232AF is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.186 H 287.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5232AF
RGBrgb(82, 50, 175)
HSLhsl(255, 56%, 44%)
HSVhsv(255, 71%, 69%)
CMYKcmyk(53.1%, 71.4%, 0%, 31.4%)
CIE-LABlab(32.19, 45.57, -61.67)
CIE-LCHlch(32.19, 76.68, 306.46°)
OKLaboklab(43.55% 0.0568 -0.1772)
OKLCHoklch(43.55% 0.186 287.8)
XYZxyz(12.3559, 7.1696, 41.2819)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232AF #8FAF32
analogous
#3251AF #5232AF #9132AF
triadic
#5232AF #AF5232 #32AF52
tetradic
#5232AF #AF3251 #8FAF32 #32AF91
square
#5232AF #AF3251 #8FAF32 #32AF91
split-complementary
#5232AF #AF9132 #51AF32
monochromatic
#251750 #3C247F #5232AF #7151CD #9881DB

Accessibility & contrast

On white

8.63
#5232AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5232AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232AF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232AF#FFFFFF#000000##FFFFFF
##5232AF1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#2E536D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5232af;
/* rgb */ color: rgb(82, 50, 175);
/* oklch */ color: oklch(43.5% 0.186 287.8);
Tailwind
colors: {
  custom: {
    50: '#8c6dc8',
    500: '#5232af',
    950: '#000000',
  },
}
SCSS
$custom: #5232af;
$custom-light: #8c6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5232af",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 255.36,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.18611,
    "h": 287.8
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

primary
#5232AF
secondary
#B1C479
accent
#DF49B8
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232AF

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

Preview Lab → · Contrast checker → · Palette generator →

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