#5231B5#5231B5

#5231B5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.194 H 286.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5231B5
RGBrgb(82, 49, 181)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.7%, 72.9%, 0%, 29%)
CIE-LABlab(32.54, 47.84, -64.67)
CIE-LCHlch(32.54, 80.44, 306.50°)
OKLaboklab(43.96% 0.0564 -0.186)
OKLCHoklch(43.96% 0.194 286.9)
XYZxyz(12.9160, 7.3260, 44.4406)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B5 #94B531
analogous
#3152B5 #5231B5 #9431B5
triadic
#5231B5 #B55231 #31B552
tetradic
#5231B5 #B53152 #94B531 #31B594
square
#5231B5 #B53152 #94B531 #31B594
split-complementary
#5231B5 #B59431 #52B531
monochromatic
#261755 #3C2485 #5231B5 #7253D0 #9A83DD

Accessibility & contrast

On white

8.52
#5231B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5231B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B5
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B5#FFFFFF#000000##FFFFFF
##5231B51.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#285570
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5231b5;
/* rgb */ color: rgb(82, 49, 181);
/* oklch */ color: oklch(44.0% 0.194 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d6ccc',
    500: '#5231b5',
    950: '#000000',
  },
}
SCSS
$custom: #5231b5;
$custom-light: #8d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b5",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 255,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43956,
    "c": 0.19437,
    "h": 286.9
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#5231B5
secondary
#B4C77B
accent
#E147BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5231B5

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

Preview Lab → · Contrast checker → · Palette generator →

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