#5F3AC8#5F3AC8

#5F3AC8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.206 H 288.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5F3AC8
RGBrgb(95, 58, 200)
HSLhsl(256, 56%, 51%)
HSVhsv(256, 71%, 78%)
CMYKcmyk(52.5%, 71%, 0%, 21.6%)
CIE-LABlab(37.17, 50.62, -68.20)
CIE-LCHlch(37.17, 84.94, 306.58°)
OKLaboklab(48.06% 0.0636 -0.196)
OKLCHoklch(48.06% 0.206 288)
XYZxyz(16.6546, 9.6283, 55.6133)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AC8 #A3C83A
analogous
#3A5CC8 #5F3AC8 #A63AC8
triadic
#5F3AC8 #C85F3A #3AC85F
tetradic
#5F3AC8 #C83A5C #A3C83A #3AC8A6
square
#5F3AC8 #C83A5C #A3C83A #3AC8A6
split-complementary
#5F3AC8 #C8A63A #5CC83A
monochromatic
#321E6A #482B9A #5F3AC8 #866AD5 #AD9AE3

Accessibility & contrast

On white

7.18
#5F3AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F3AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AC8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AC8#FFFFFF#000000##FFFFFF
##5F3AC81.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#365F7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3ac8;
/* rgb */ color: rgb(95, 58, 200);
/* oklch */ color: oklch(48.1% 0.206 288.0);
Tailwind
colors: {
  custom: {
    50: '#9673da',
    500: '#5f3ac8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ac8;
$custom-light: #9673da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ac8",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 200
  },
  "hsl": {
    "h": 255.634,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48061,
    "c": 0.20604,
    "h": 288
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#5F3AC8
secondary
#BECE8F
accent
#E048B8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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