#5231BC#5231BC

#5231BC is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.203 H 285.7°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5231BC
RGBrgb(82, 49, 188)
HSLhsl(254, 59%, 46%)
HSVhsv(254, 74%, 74%)
CMYKcmyk(56.4%, 73.9%, 0%, 26.3%)
CIE-LABlab(33.18, 49.87, -67.76)
CIE-LCHlch(33.18, 84.13, 306.35°)
OKLaboklab(44.61% 0.0548 -0.1951)
OKLCHoklch(44.61% 0.203 285.7)
XYZxyz(13.6523, 7.6205, 48.3187)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231BC #9BBC31
analogous
#3155BC #5231BC #9831BC
triadic
#5231BC #BC5231 #31BC52
tetradic
#5231BC #BC3155 #9BBC31 #31BC98
square
#5231BC #BC3155 #9BBC31 #31BC98
split-complementary
#5231BC #BC9831 #55BC31
monochromatic
#28185B #3D248B #5231BC #7457D3 #9D88E0

Accessibility & contrast

On white

8.32
#5231BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5231BC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231BC#FFFFFF#000000##FFFFFF
##5231BC1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#1F5774
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5231bc;
/* rgb */ color: rgb(82, 49, 188);
/* oklch */ color: oklch(44.6% 0.203 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e6dd1',
    500: '#5231bc',
    950: '#000000',
  },
}
SCSS
$custom: #5231bc;
$custom-light: #8e6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5231bc",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 254.245,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.2026,
    "h": 285.7
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#5231BC
secondary
#B8CA7F
accent
#E246BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5231BC

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

Preview Lab → · Contrast checker → · Palette generator →

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