#5D30B3#5D30B3

#5D30B3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.193 H 292.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5D30B3
RGBrgb(93, 48, 179)
HSLhsl(261, 58%, 45%)
HSVhsv(261, 73%, 70%)
CMYKcmyk(48%, 73.2%, 0%, 29.8%)
CIE-LABlab(33.34, 49.52, -62.12)
CIE-LCHlch(33.34, 79.44, 308.56°)
OKLaboklab(44.74% 0.0739 -0.1782)
OKLCHoklch(44.74% 0.193 292.5)
XYZxyz(13.7056, 7.6953, 43.4023)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B3 #86B330
analogous
#3044B3 #5D30B3 #9F30B3
triadic
#5D30B3 #B35D30 #30B35D
tetradic
#5D30B3 #B33044 #86B330 #30B39F
square
#5D30B3 #B33044 #86B330 #30B39F
split-complementary
#5D30B3 #B39F30 #44B330
monochromatic
#2B1652 #442383 #5D30B3 #7C50D0 #A080DD

Accessibility & contrast

On white

8.27
#5D30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D30B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B3#FFFFFF#000000##FFFFFF
##5D30B31.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#42536F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d30b3;
/* rgb */ color: rgb(93, 48, 179);
/* oklch */ color: oklch(44.7% 0.193 292.5);
Tailwind
colors: {
  custom: {
    50: '#936dcb',
    500: '#5d30b3',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b3;
$custom-light: #936dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b3",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 260.611,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44741,
    "c": 0.19288,
    "h": 292.5
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#5D30B3
secondary
#ABC679
accent
#E147AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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