#5231CC#5231CC

#5231CC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.221 H 283.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5231CC
RGBrgb(82, 49, 204)
HSLhsl(253, 61%, 50%)
HSVhsv(253, 76%, 80%)
CMYKcmyk(59.8%, 76%, 0%, 20%)
CIE-LABlab(34.70, 54.48, -74.63)
CIE-LCHlch(34.70, 92.40, 306.13°)
OKLaboklab(46.13% 0.0507 -0.2151)
OKLCHoklch(46.13% 0.221 283.3)
XYZxyz(15.4737, 8.3491, 57.9112)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231CC #ABCC31
analogous
#315ECC #5231CC #A031CC
triadic
#5231CC #CC5231 #31CC52
tetradic
#5231CC #CC315E #ABCC31 #31CCA0
square
#5231CC #CC315E #ABCC31 #31CCA0
split-complementary
#5231CC #CCA031 #5ECC31
monochromatic
#2A1969 #3E259B #5231CC #7B61D9 #A492E5

Accessibility & contrast

On white

7.87
#5231CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5231CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231CC
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231CC#FFFFFF#000000##FFFFFF
##5231CC1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004CC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5231cc;
/* rgb */ color: rgb(82, 49, 204);
/* oklch */ color: oklch(46.1% 0.221 283.3);
Tailwind
colors: {
  custom: {
    50: '#916ddd',
    500: '#5231cc',
    950: '#000000',
  },
}
SCSS
$custom: #5231cc;
$custom-light: #916ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#5231cc",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 252.774,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46133,
    "c": 0.22105,
    "h": 283.3
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#5231CC
secondary
#C1D089
accent
#E443C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5231CC

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

Preview Lab → · Contrast checker → · Palette generator →

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