#5231B7#5231B7

#5231B7 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.197 H 286.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5231B7
RGBrgb(82, 49, 183)
HSLhsl(255, 58%, 45%)
HSVhsv(255, 73%, 72%)
CMYKcmyk(55.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.72, 48.43, -65.56)
CIE-LCHlch(32.72, 81.50, 306.45°)
OKLaboklab(44.14% 0.0559 -0.1886)
OKLCHoklch(44.14% 0.197 286.5)
XYZxyz(13.1227, 7.4086, 45.5291)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B7 #96B731
analogous
#3153B7 #5231B7 #9531B7
triadic
#5231B7 #B75231 #31B752
tetradic
#5231B7 #B73153 #96B731 #31B795
square
#5231B7 #B73153 #96B731 #31B795
split-complementary
#5231B7 #B79531 #53B731
monochromatic
#271756 #3C2487 #5231B7 #7354D1 #9A84DE

Accessibility & contrast

On white

8.46
#5231B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5231B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B7
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B7#FFFFFF#000000##FFFFFF
##5231B71.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#255571
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5231b7;
/* rgb */ color: rgb(82, 49, 183);
/* oklch */ color: oklch(44.1% 0.197 286.5);
Tailwind
colors: {
  custom: {
    50: '#8d6cce',
    500: '#5231b7',
    950: '#000000',
  },
}
SCSS
$custom: #5231b7;
$custom-light: #8d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b7",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 254.776,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44141,
    "c": 0.19673,
    "h": 286.5
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#5231B7
secondary
#B5C87C
accent
#E147BB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5231B7

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

Preview Lab → · Contrast checker → · Palette generator →

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