#5231C0#5231C0

#5231C0 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 45.0% C 0.207 H 285.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5231C0
RGBrgb(82, 49, 192)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 75%)
CMYKcmyk(57.3%, 74.5%, 0%, 24.7%)
CIE-LABlab(33.55, 51.03, -69.50)
CIE-LCHlch(33.55, 86.22, 306.29°)
OKLaboklab(44.98% 0.0538 -0.2001)
OKLCHoklch(44.98% 0.207 285)
XYZxyz(14.0895, 7.7954, 50.6212)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231C0 #9FC031
analogous
#3158C0 #5231C0 #9931C0
triadic
#5231C0 #C05231 #31C052
tetradic
#5231C0 #C03158 #9FC031 #31C099
square
#5231C0 #C03158 #9FC031 #31C099
split-complementary
#5231C0 #C09931 #58C031
monochromatic
#28185E #3D258F #5231C0 #7659D5 #9E8AE1

Accessibility & contrast

On white

8.21
#5231C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5231C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231C0
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231C0#FFFFFF#000000##FFFFFF
##5231C01.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C4
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#185976
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5231c0;
/* rgb */ color: rgb(82, 49, 192);
/* oklch */ color: oklch(45.0% 0.207 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f6dd4',
    500: '#5231c0',
    950: '#000000',
  },
}
SCSS
$custom: #5231c0;
$custom-light: #8f6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5231c0",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 253.846,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44982,
    "c": 0.20725,
    "h": 285
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#5231C0
secondary
#BACB82
accent
#E345BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5231C0

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

Preview Lab → · Contrast checker → · Palette generator →

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