#5231A3#5231A3

#5231A3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.173 H 290.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5231A3
RGBrgb(82, 49, 163)
HSLhsl(257, 54%, 42%)
HSVhsv(257, 70%, 64%)
CMYKcmyk(49.7%, 69.9%, 0%, 36.1%)
CIE-LABlab(30.96, 42.62, -56.47)
CIE-LCHlch(30.96, 70.75, 307.04°)
OKLaboklab(42.35% 0.06 -0.162)
OKLCHoklch(42.35% 0.173 290.3)
XYZxyz(11.1870, 6.6344, 35.3343)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231A3 #82A331
analogous
#3149A3 #5231A3 #8B31A3
triadic
#5231A3 #A35231 #31A352
tetradic
#5231A3 #A33149 #82A331 #31A38B
square
#5231A3 #A33149 #82A331 #31A38B
split-complementary
#5231A3 #A38B31 #49A331
monochromatic
#231545 #3A2374 #5231A3 #6E49C8 #9378D6

Accessibility & contrast

On white

9.02
#5231A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5231A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231A3
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231A3#FFFFFF#000000##FFFFFF
##5231A31.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#374E66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5231a3;
/* rgb */ color: rgb(82, 49, 163);
/* oklch */ color: oklch(42.3% 0.173 290.3);
Tailwind
colors: {
  custom: {
    50: '#8a6cbf',
    500: '#5231a3',
    950: '#000000',
  },
}
SCSS
$custom: #5231a3;
$custom-light: #8a6cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5231a3",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 257.368,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42348,
    "c": 0.17274,
    "h": 290.3
  },
  "luminance": 0.06635
}

Semantic roles & 50–950 ramp

primary
#5231A3
secondary
#A8BF71
accent
#DD4BB3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5231A3

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

Preview Lab → · Contrast checker → · Palette generator →

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