#5231C9#5231C9

#5231C9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.218 H 283.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5231C9
RGBrgb(82, 49, 201)
HSLhsl(253, 61%, 49%)
HSVhsv(253, 76%, 79%)
CMYKcmyk(59.2%, 75.6%, 0%, 21.2%)
CIE-LABlab(34.41, 53.62, -73.36)
CIE-LCHlch(34.41, 90.87, 306.16°)
OKLaboklab(45.84% 0.0515 -0.2114)
OKLCHoklch(45.84% 0.218 283.7)
XYZxyz(15.1174, 8.2065, 56.0344)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231C9 #A8C931
analogous
#315CC9 #5231C9 #9E31C9
triadic
#5231C9 #C95231 #31C952
tetradic
#5231C9 #C9315C #A8C931 #31C99E
square
#5231C9 #C9315C #A8C931 #31C99E
split-complementary
#5231C9 #C99E31 #5CC931
monochromatic
#2A1967 #3E2598 #5231C9 #795FD8 #A390E4

Accessibility & contrast

On white

7.95
#5231C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5231C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231C9
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231C9#FFFFFF#000000##FFFFFF
##5231C91.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004CC6
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5231c9;
/* rgb */ color: rgb(82, 49, 201);
/* oklch */ color: oklch(45.8% 0.218 283.7);
Tailwind
colors: {
  custom: {
    50: '#906ddb',
    500: '#5231c9',
    950: '#000000',
  },
}
SCSS
$custom: #5231c9;
$custom-light: #906ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5231c9",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 253.026,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45843,
    "c": 0.21762,
    "h": 283.7
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#5231C9
secondary
#BFCF87
accent
#E444C1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5231C9

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

Preview Lab → · Contrast checker → · Palette generator →

#5231C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva