#5231B2#5231B2

#5231B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.191 H 287.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5231B2
RGBrgb(82, 49, 178)
HSLhsl(255, 57%, 45%)
HSVhsv(255, 72%, 70%)
CMYKcmyk(53.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.27, 46.97, -63.33)
CIE-LCHlch(32.27, 78.85, 306.57°)
OKLaboklab(43.68% 0.057 -0.1821)
OKLCHoklch(43.68% 0.191 287.4)
XYZxyz(12.6115, 7.2042, 42.8369)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B2 #91B231
analogous
#3151B2 #5231B2 #9331B2
triadic
#5231B2 #B25231 #31B252
tetradic
#5231B2 #B23151 #91B231 #31B293
square
#5231B2 #B23151 #91B231 #31B293
split-complementary
#5231B2 #B29331 #51B231
monochromatic
#261752 #3C2482 #5231B2 #7151CF #9881DC

Accessibility & contrast

On white

8.60
#5231B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5231B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B2
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B2#FFFFFF#000000##FFFFFF
##5231B21.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#2B546E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5231b2;
/* rgb */ color: rgb(82, 49, 178);
/* oklch */ color: oklch(43.7% 0.191 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c6cca',
    500: '#5231b2',
    950: '#000000',
  },
}
SCSS
$custom: #5231b2;
$custom-light: #8c6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b2",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 255.349,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43682,
    "c": 0.19081,
    "h": 287.4
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#5231B2
secondary
#B2C579
accent
#E048B9
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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