#5A30BB#5A30BB

#5A30BB is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.202 H 289.5°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5A30BB
RGBrgb(90, 48, 187)
HSLhsl(258, 59%, 46%)
HSVhsv(258, 74%, 73%)
CMYKcmyk(51.9%, 74.3%, 0%, 26.7%)
CIE-LABlab(33.72, 51.25, -66.25)
CIE-LCHlch(33.72, 83.76, 307.72°)
OKLaboklab(45.15% 0.0675 -0.1904)
OKLCHoklch(45.15% 0.202 289.5)
XYZxyz(14.2404, 7.8748, 47.7737)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30BB #91BB30
analogous
#304CBB #5A30BB #9F30BB
triadic
#5A30BB #BB5A30 #30BB5A
tetradic
#5A30BB #BB304C #91BB30 #30BB9F
square
#5A30BB #BB304C #91BB30 #30BB9F
split-complementary
#5A30BB #BB9F30 #4CBB30
monochromatic
#2B175A #43238A #5A30BB #7B55D3 #A186E0

Accessibility & contrast

On white

8.16
#5A30BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A30BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30BB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30BB#FFFFFF#000000##FFFFFF
##5A30BB1.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#365673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a30bb;
/* rgb */ color: rgb(90, 48, 187);
/* oklch */ color: oklch(45.2% 0.202 289.5);
Tailwind
colors: {
  custom: {
    50: '#926dd1',
    500: '#5a30bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a30bb;
$custom-light: #926dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30bb",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 258.129,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45151,
    "c": 0.20199,
    "h": 289.5
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#5A30BB
secondary
#B2C97D
accent
#E245B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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