#5231BB#5231BB

#5231BB is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.201 H 285.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5231BB
RGBrgb(82, 49, 187)
HSLhsl(254, 58%, 46%)
HSVhsv(254, 74%, 73%)
CMYKcmyk(56.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(33.09, 49.58, -67.32)
CIE-LCHlch(33.09, 83.61, 306.37°)
OKLaboklab(44.51% 0.055 -0.1938)
OKLCHoklch(44.51% 0.201 285.8)
XYZxyz(13.5449, 7.5775, 47.7530)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231BB #9ABB31
analogous
#3155BB #5231BB #9731BB
triadic
#5231BB #BB5231 #31BB52
tetradic
#5231BB #BB3155 #9ABB31 #31BB97
square
#5231BB #BB3155 #9ABB31 #31BB97
split-complementary
#5231BB #BB9731 #55BB31
monochromatic
#27185A #3D248B #5231BB #7456D3 #9C87E0

Accessibility & contrast

On white

8.35
#5231BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5231BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231BB
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231BB#FFFFFF#000000##FFFFFF
##5231BB1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#205773
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5231bb;
/* rgb */ color: rgb(82, 49, 187);
/* oklch */ color: oklch(44.5% 0.201 285.8);
Tailwind
colors: {
  custom: {
    50: '#8e6dd1',
    500: '#5231bb',
    950: '#000000',
  },
}
SCSS
$custom: #5231bb;
$custom-light: #8e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5231bb",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 254.348,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44512,
    "c": 0.20142,
    "h": 285.8
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#5231BB
secondary
#B7C97F
accent
#E246BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5231BB

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

Preview Lab → · Contrast checker → · Palette generator →

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