#5231B4#5231B4

#5231B4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.193 H 287.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5231B4
RGBrgb(82, 49, 180)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 73%, 71%)
CMYKcmyk(54.4%, 72.8%, 0%, 29.4%)
CIE-LABlab(32.45, 47.55, -64.22)
CIE-LCHlch(32.45, 79.91, 306.52°)
OKLaboklab(43.86% 0.0566 -0.1847)
OKLCHoklch(43.86% 0.193 287)
XYZxyz(12.8138, 7.2851, 43.9021)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B4 #93B431
analogous
#3151B4 #5231B4 #9431B4
triadic
#5231B4 #B45231 #31B452
tetradic
#5231B4 #B43151 #93B431 #31B494
square
#5231B4 #B43151 #93B431 #31B494
split-complementary
#5231B4 #B49431 #51B431
monochromatic
#261754 #3C2484 #5231B4 #7252D0 #9982DD

Accessibility & contrast

On white

8.55
#5231B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5231B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B4
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B4#FFFFFF#000000##FFFFFF
##5231B41.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#29546F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5231b4;
/* rgb */ color: rgb(82, 49, 180);
/* oklch */ color: oklch(43.9% 0.193 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6ccc',
    500: '#5231b4',
    950: '#000000',
  },
}
SCSS
$custom: #5231b4;
$custom-light: #8d6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b4",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 255.115,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.19318,
    "h": 287
  },
  "luminance": 0.07286
}

Semantic roles & 50–950 ramp

primary
#5231B4
secondary
#B3C67B
accent
#E047BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231B4

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

Preview Lab → · Contrast checker → · Palette generator →

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