#5F3BC9#5F3BC9

#5F3BC9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.206 H 287.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC9
RGBrgb(95, 59, 201)
HSLhsl(255, 57%, 51%)
HSVhsv(255, 71%, 79%)
CMYKcmyk(52.7%, 70.6%, 0%, 21.2%)
CIE-LABlab(37.44, 50.39, -68.34)
CIE-LCHlch(37.44, 84.91, 306.40°)
OKLaboklab(48.28% 0.0625 -0.1964)
OKLCHoklch(48.28% 0.206 287.7)
XYZxyz(16.8228, 9.7770, 56.2477)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC9 #A5C93B
analogous
#3B5EC9 #5F3BC9 #A63BC9
triadic
#5F3BC9 #C95F3B #3BC95F
tetradic
#5F3BC9 #C93B5E #A5C93B #3BC9A6
square
#5F3BC9 #C93B5E #A5C93B #3BC9A6
split-complementary
#5F3BC9 #C9A63B #5EC93B
monochromatic
#321E6C #482B9C #5F3BC9 #866BD6 #AD9BE3

Accessibility & contrast

On white

7.11
#5F3BC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F3BC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC9
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC9#FFFFFF#000000##FFFFFF
##5F3BC91.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#35607E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3bc9;
/* rgb */ color: rgb(95, 59, 201);
/* oklch */ color: oklch(48.3% 0.206 287.7);
Tailwind
colors: {
  custom: {
    50: '#9674db',
    500: '#5f3bc9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc9;
$custom-light: #9674db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc9",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 201
  },
  "hsl": {
    "h": 255.211,
    "s": 56.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.20611,
    "h": 287.7
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#5F3BC9
secondary
#BFCF90
accent
#E048B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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