#5F3ABC#5F3ABC

#5F3ABC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.192 H 290.1°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5F3ABC
RGBrgb(95, 58, 188)
HSLhsl(257, 53%, 48%)
HSVhsv(257, 69%, 74%)
CMYKcmyk(49.5%, 69.1%, 0%, 26.3%)
CIE-LABlab(36.16, 47.22, -62.83)
CIE-LCHlch(36.16, 78.60, 306.93°)
OKLaboklab(47.03% 0.0658 -0.1802)
OKLCHoklch(47.03% 0.192 290.1)
XYZxyz(15.3069, 9.0892, 48.5151)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ABC #97BC3A
analogous
#3A56BC #5F3ABC #A03ABC
triadic
#5F3ABC #BC5F3A #3ABC5F
tetradic
#5F3ABC #BC3A56 #97BC3A #3ABCA0
square
#5F3ABC #BC3A56 #97BC3A #3ABCA0
split-complementary
#5F3ABC #BCA03A #56BC3A
monochromatic
#301D5E #472C8D #5F3ABC #8364CF #A893DE

Accessibility & contrast

On white

7.45
#5F3ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F3ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ABC
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ABC#FFFFFF#000000##FFFFFF
##5F3ABC1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#405B76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3abc;
/* rgb */ color: rgb(95, 58, 188);
/* oklch */ color: oklch(47.0% 0.192 290.1);
Tailwind
colors: {
  custom: {
    50: '#9573d1',
    500: '#5f3abc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3abc;
$custom-light: #9573d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3abc",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 188
  },
  "hsl": {
    "h": 257.077,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47027,
    "c": 0.19188,
    "h": 290.1
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#5F3ABC
secondary
#B7C989
accent
#DC4CB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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