#5231C2#5231C2

#5231C2 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.210 H 284.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5231C2
RGBrgb(82, 49, 194)
HSLhsl(254, 60%, 48%)
HSVhsv(254, 75%, 76%)
CMYKcmyk(57.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.74, 51.61, -70.37)
CIE-LCHlch(33.74, 87.26, 306.26°)
OKLaboklab(45.17% 0.0533 -0.2027)
OKLCHoklch(45.17% 0.21 284.7)
XYZxyz(14.3126, 7.8846, 51.7962)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231C2 #A1C231
analogous
#3159C2 #5231C2 #9A31C2
triadic
#5231C2 #C25231 #31C252
tetradic
#5231C2 #C23159 #A1C231 #31C29A
square
#5231C2 #C23159 #A1C231 #31C29A
split-complementary
#5231C2 #C29A31 #59C231
monochromatic
#291860 #3D2591 #5231C2 #775BD6 #9F8CE2

Accessibility & contrast

On white

8.15
#5231C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5231C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231C2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231C2#FFFFFF#000000##FFFFFF
##5231C21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#145A77
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5231c2;
/* rgb */ color: rgb(82, 49, 194);
/* oklch */ color: oklch(45.2% 0.210 284.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dd6',
    500: '#5231c2',
    950: '#000000',
  },
}
SCSS
$custom: #5231c2;
$custom-light: #8f6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5231c2",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 253.655,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45172,
    "c": 0.20957,
    "h": 284.7
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#5231C2
secondary
#BBCC83
accent
#E345BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5231C2

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

Preview Lab → · Contrast checker → · Palette generator →

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