#5A30BD#5A30BD

#5A30BD is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.204 H 289.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5A30BD
RGBrgb(90, 48, 189)
HSLhsl(258, 59%, 46%)
HSVhsv(258, 75%, 74%)
CMYKcmyk(52.4%, 74.6%, 0%, 25.9%)
CIE-LABlab(33.90, 51.80, -67.13)
CIE-LCHlch(33.90, 84.80, 307.65°)
OKLaboklab(45.33% 0.067 -0.193)
OKLCHoklch(45.33% 0.204 289.2)
XYZxyz(14.4560, 7.9610, 48.9092)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A30BD #93BD30
analogous
#304DBD #5A30BD #A130BD
triadic
#5A30BD #BD5A30 #30BD5A
tetradic
#5A30BD #BD304D #93BD30 #30BDA1
square
#5A30BD #BD304D #93BD30 #30BDA1
split-complementary
#5A30BD #BDA130 #4DBD30
monochromatic
#2C175B #43248C #5A30BD #7C56D4 #A287E0

Accessibility & contrast

On white

8.10
#5A30BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A30BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A30BD
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A30BD#FFFFFF#000000##FFFFFF
##5A30BD1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#355774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a30bd;
/* rgb */ color: rgb(90, 48, 189);
/* oklch */ color: oklch(45.3% 0.204 289.2);
Tailwind
colors: {
  custom: {
    50: '#936dd2',
    500: '#5a30bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a30bd;
$custom-light: #936dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a30bd",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 189
  },
  "hsl": {
    "h": 257.872,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45333,
    "c": 0.20427,
    "h": 289.2
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#5A30BD
secondary
#B4CA7F
accent
#E345B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A30BD

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

Preview Lab → · Contrast checker → · Palette generator →

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