#5231E6#5231E6

#5231E6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.250 H 280.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5231E6
RGBrgb(82, 49, 230)
HSLhsl(251, 78%, 55%)
HSVhsv(251, 79%, 90%)
CMYKcmyk(64.3%, 78.7%, 0%, 9.8%)
CIE-LABlab(37.30, 61.86, -85.30)
CIE-LCHlch(37.30, 105.37, 305.95°)
OKLaboklab(48.72% 0.0436 -0.2462)
OKLCHoklch(48.72% 0.25 280)
XYZxyz(18.8564, 9.7021, 75.7266)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231E6 #C5E631
analogous
#316BE6 #5231E6 #AC31E6
triadic
#5231E6 #E65231 #31E652
tetradic
#5231E6 #E6316B #C5E631 #31E6AC
square
#5231E6 #E6316B #C5E631 #31E6AC
split-complementary
#5231E6 #E6AC31 #6BE631
monochromatic
#27118C #3718C2 #5231E6 #8068ED #AE9EF3

Accessibility & contrast

On white

7.14
#5231E6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5231E6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231E6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231E6#FFFFFF#000000##FFFFFF
##5231E61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EEB
Deuteranopia (green-blind)
#0051E3
Tritanopia (blue-blind)
#00688C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5231e6;
/* rgb */ color: rgb(82, 49, 230);
/* oklch */ color: oklch(48.7% 0.250 280.0);
Tailwind
colors: {
  custom: {
    50: '#956fef',
    500: '#5231e6',
    950: '#000000',
  },
}
SCSS
$custom: #5231e6;
$custom-light: #956fef;
$custom-dark: #000000;
JSON
{
  "hex": "#5231e6",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 230
  },
  "hsl": {
    "h": 250.939,
    "s": 78.355,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48723,
    "c": 0.25008,
    "h": 280
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#5231E6
secondary
#D2E093
accent
#F533D1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5231E6

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

Preview Lab → · Contrast checker → · Palette generator →

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