#5231BA#5231BA

#5231BA is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.200 H 286.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5231BA
RGBrgb(82, 49, 186)
HSLhsl(254, 58%, 46%)
HSVhsv(254, 74%, 73%)
CMYKcmyk(55.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.99, 49.29, -66.88)
CIE-LCHlch(32.99, 83.08, 306.39°)
OKLaboklab(44.42% 0.0552 -0.1925)
OKLCHoklch(44.42% 0.2 286)
XYZxyz(13.4382, 7.5349, 47.1911)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231BA #99BA31
analogous
#3154BA #5231BA #9631BA
triadic
#5231BA #BA5231 #31BA52
tetradic
#5231BA #BA3154 #99BA31 #31BA96
square
#5231BA #BA3154 #99BA31 #31BA96
split-complementary
#5231BA #BA9631 #54BA31
monochromatic
#271759 #3D248A #5231BA #7456D2 #9C86DF

Accessibility & contrast

On white

8.38
#5231BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5231BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231BA
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231BA#FFFFFF#000000##FFFFFF
##5231BA1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#225773
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5231ba;
/* rgb */ color: rgb(82, 49, 186);
/* oklch */ color: oklch(44.4% 0.200 286.0);
Tailwind
colors: {
  custom: {
    50: '#8e6dd0',
    500: '#5231ba',
    950: '#000000',
  },
}
SCSS
$custom: #5231ba;
$custom-light: #8e6dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5231ba",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 254.453,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44419,
    "c": 0.20026,
    "h": 286
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#5231BA
secondary
#B7C97E
accent
#E246BC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5231BA

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

Preview Lab → · Contrast checker → · Palette generator →

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