#5F3BCC#5F3BCC

#5F3BCC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.210 H 287.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5F3BCC
RGBrgb(95, 59, 204)
HSLhsl(255, 59%, 52%)
HSVhsv(255, 71%, 80%)
CMYKcmyk(53.4%, 71.1%, 0%, 20%)
CIE-LABlab(37.70, 51.24, -69.66)
CIE-LCHlch(37.70, 86.48, 306.34°)
OKLaboklab(48.54% 0.0619 -0.2003)
OKLCHoklch(48.54% 0.21 287.2)
XYZxyz(17.1791, 9.9196, 58.1245)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BCC #A8CC3B
analogous
#3B60CC #5F3BCC #A83BCC
triadic
#5F3BCC #CC5F3B #3BCC5F
tetradic
#5F3BCC #CC3B60 #A8CC3B #3BCCA8
square
#5F3BCC #CC3B60 #A8CC3B #3BCCA8
split-complementary
#5F3BCC #CCA83B #60CC3B
monochromatic
#321D70 #472AA0 #5F3BCC #876CD9 #AE9CE5

Accessibility & contrast

On white

7.04
#5F3BCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F3BCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BCC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BCC#FFFFFF#000000##FFFFFF
##5F3BCC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#326280
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3bcc;
/* rgb */ color: rgb(95, 59, 204);
/* oklch */ color: oklch(48.5% 0.210 287.2);
Tailwind
colors: {
  custom: {
    50: '#9774dd',
    500: '#5f3bcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bcc;
$custom-light: #9774dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bcc",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 204
  },
  "hsl": {
    "h": 254.897,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48544,
    "c": 0.20963,
    "h": 287.2
  },
  "luminance": 0.0992
}

Semantic roles & 50–950 ramp

primary
#5F3BCC
secondary
#C1D192
accent
#E246BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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