#5A30BF#5A30BF

#5A30BF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.207 H 288.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5A30BF
RGBrgb(90, 48, 191)
HSLhsl(258, 60%, 47%)
HSVhsv(258, 75%, 75%)
CMYKcmyk(52.9%, 74.9%, 0%, 25.1%)
CIE-LABlab(34.08, 52.36, -68.01)
CIE-LCHlch(34.08, 85.83, 307.59°)
OKLaboklab(45.52% 0.0665 -0.1955)
OKLCHoklch(45.52% 0.207 288.8)
XYZxyz(14.6746, 8.0485, 50.0604)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30BF #95BF30
analogous
#304EBF #5A30BF #A230BF
triadic
#5A30BF #BF5A30 #30BF5A
tetradic
#5A30BF #BF304E #95BF30 #30BFA2
square
#5A30BF #BF304E #95BF30 #30BFA2
split-complementary
#5A30BF #BFA230 #4EBF30
monochromatic
#2C175D #43248E #5A30BF #7C57D5 #A288E1

Accessibility & contrast

On white

8.05
#5A30BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5A30BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30BF
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30BF#FFFFFF#000000##FFFFFF
##5A30BF1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#335775
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a30bf;
/* rgb */ color: rgb(90, 48, 191);
/* oklch */ color: oklch(45.5% 0.207 288.8);
Tailwind
colors: {
  custom: {
    50: '#936dd3',
    500: '#5a30bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a30bf;
$custom-light: #936dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30bf",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 191
  },
  "hsl": {
    "h": 257.622,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.20654,
    "h": 288.8
  },
  "luminance": 0.08049
}

Semantic roles & 50–950 ramp

primary
#5A30BF
secondary
#B5CB80
accent
#E345B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A30BF

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

Preview Lab → · Contrast checker → · Palette generator →

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