#5231B3#5231B3

#5231B3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.192 H 287.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5231B3
RGBrgb(82, 49, 179)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 73%, 70%)
CMYKcmyk(54.2%, 72.6%, 0%, 29.8%)
CIE-LABlab(32.36, 47.26, -63.78)
CIE-LCHlch(32.36, 79.38, 306.54°)
OKLaboklab(43.77% 0.0568 -0.1834)
OKLCHoklch(43.77% 0.192 287.2)
XYZxyz(12.7123, 7.2445, 43.3676)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B3 #92B331
analogous
#3151B3 #5231B3 #9331B3
triadic
#5231B3 #B35231 #31B352
tetradic
#5231B3 #B33151 #92B331 #31B393
square
#5231B3 #B33151 #92B331 #31B393
split-complementary
#5231B3 #B39331 #51B331
monochromatic
#261753 #3C2483 #5231B3 #7252D0 #9982DD

Accessibility & contrast

On white

8.57
#5231B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5231B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B3
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B3#FFFFFF#000000##FFFFFF
##5231B31.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#2A546F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5231b3;
/* rgb */ color: rgb(82, 49, 179);
/* oklch */ color: oklch(43.8% 0.192 287.2);
Tailwind
colors: {
  custom: {
    50: '#8d6ccb',
    500: '#5231b3',
    950: '#000000',
  },
}
SCSS
$custom: #5231b3;
$custom-light: #8d6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b3",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 255.231,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43773,
    "c": 0.192,
    "h": 287.2
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#5231B3
secondary
#B3C67A
accent
#E048BA
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231B3

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

Preview Lab → · Contrast checker → · Palette generator →

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