#5231B8#5231B8

#5231B8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.198 H 286.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5231B8
RGBrgb(82, 49, 184)
HSLhsl(255, 58%, 46%)
HSVhsv(255, 73%, 72%)
CMYKcmyk(55.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(32.81, 48.71, -66.00)
CIE-LCHlch(32.81, 82.03, 306.43°)
OKLaboklab(44.23% 0.0557 -0.1899)
OKLCHoklch(44.23% 0.198 286.3)
XYZxyz(13.2271, 7.4504, 46.0792)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231B8 #97B831
analogous
#3153B8 #5231B8 #9531B8
triadic
#5231B8 #B85231 #31B852
tetradic
#5231B8 #B83153 #97B831 #31B895
square
#5231B8 #B83153 #97B831 #31B895
split-complementary
#5231B8 #B89531 #53B831
monochromatic
#271757 #3C2488 #5231B8 #7355D2 #9B85DE

Accessibility & contrast

On white

8.43
#5231B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5231B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231B8
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231B8#FFFFFF#000000##FFFFFF
##5231B81.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#245672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5231b8;
/* rgb */ color: rgb(82, 49, 184);
/* oklch */ color: oklch(44.2% 0.198 286.3);
Tailwind
colors: {
  custom: {
    50: '#8d6dce',
    500: '#5231b8',
    950: '#000000',
  },
}
SCSS
$custom: #5231b8;
$custom-light: #8d6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5231b8",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 254.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44233,
    "c": 0.19791,
    "h": 286.3
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5231B8

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

Preview Lab → · Contrast checker → · Palette generator →

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