#5231B9#5231B9

#5231B9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.199 H 286.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5231B9
RGBrgb(82, 49, 185)
HSLhsl(255, 58%, 46%)
HSVhsv(255, 74%, 73%)
CMYKcmyk(55.7%, 73.5%, 0%, 27.5%)
CIE-LABlab(32.90, 49.00, -66.44)
CIE-LCHlch(32.90, 82.56, 306.41°)
OKLaboklab(44.33% 0.0555 -0.1912)
OKLCHoklch(44.33% 0.199 286.2)
XYZxyz(13.3323, 7.4925, 46.6332)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B9 #98B931
analogous
#3154B9 #5231B9 #9631B9
triadic
#5231B9 #B95231 #31B952
tetradic
#5231B9 #B93154 #98B931 #31B996
square
#5231B9 #B93154 #98B931 #31B996
split-complementary
#5231B9 #B99631 #54B931
monochromatic
#271758 #3D2489 #5231B9 #7355D2 #9B86DF

Accessibility & contrast

On white

8.40
#5231B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5231B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B9
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B9#FFFFFF#000000##FFFFFF
##5231B91.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#235672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5231b9;
/* rgb */ color: rgb(82, 49, 185);
/* oklch */ color: oklch(44.3% 0.199 286.2);
Tailwind
colors: {
  custom: {
    50: '#8e6dcf',
    500: '#5231b9',
    950: '#000000',
  },
}
SCSS
$custom: #5231b9;
$custom-light: #8e6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b9",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 254.559,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.19908,
    "h": 286.2
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#5231B9
secondary
#B6C87D
accent
#E146BC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5231B9

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

Preview Lab → · Contrast checker → · Palette generator →

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