#5B30A2#5B30A2

#5B30A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.173 H 295.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5B30A2
RGBrgb(91, 48, 162)
HSLhsl(263, 54%, 41%)
HSVhsv(263, 70%, 64%)
CMYKcmyk(43.8%, 70.4%, 0%, 36.5%)
CIE-LABlab(31.68, 44.54, -54.65)
CIE-LCHlch(31.68, 70.49, 309.18°)
OKLaboklab(43.07% 0.0744 -0.1563)
OKLCHoklch(43.07% 0.173 295.5)
XYZxyz(11.8912, 6.9464, 34.8897)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30A2 #77A230
analogous
#303EA2 #5B30A2 #9430A2
triadic
#5B30A2 #A25B30 #30A25B
tetradic
#5B30A2 #A2303E #77A230 #30A294
square
#5B30A2 #A2303E #77A230 #30A294
split-complementary
#5B30A2 #A29430 #3EA230
monochromatic
#261444 #402273 #5B30A2 #7847C8 #9A76D6

Accessibility & contrast

On white

8.79
#5B30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30A2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30A2#FFFFFF#000000##FFFFFF
##5B30A21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#484C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b30a2;
/* rgb */ color: rgb(91, 48, 162);
/* oklch */ color: oklch(43.1% 0.173 295.5);
Tailwind
colors: {
  custom: {
    50: '#906cbe',
    500: '#5b30a2',
    950: '#000000',
  },
}
SCSS
$custom: #5b30a2;
$custom-light: #906cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30a2",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 262.632,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43071,
    "c": 0.17308,
    "h": 295.5
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#5B30A2
secondary
#A1BE6F
accent
#DE4AA6
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B30A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5B30A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva