#5F3CB0#5F3CB0

#5F3CB0 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.175 H 292.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5F3CB0
RGBrgb(95, 60, 176)
HSLhsl(258, 49%, 46%)
HSVhsv(258, 66%, 69%)
CMYKcmyk(46%, 65.9%, 0%, 31%)
CIE-LABlab(35.59, 42.73, -56.65)
CIE-LCHlch(35.59, 70.96, 307.03°)
OKLaboklab(46.33% 0.0656 -0.1621)
OKLCHoklch(46.33% 0.175 292)
XYZxyz(14.1695, 8.7987, 42.0176)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CB0 #8DB03C
analogous
#3C53B0 #5F3CB0 #993CB0
triadic
#5F3CB0 #B05F3C #3CB05F
tetradic
#5F3CB0 #B03C53 #8DB03C #3CB099
square
#5F3CB0 #B03C53 #8DB03C #3CB099
split-complementary
#5F3CB0 #B0993C #53B03C
monochromatic
#2E1D55 #462C82 #5F3CB0 #8060C9 #A48ED8

Accessibility & contrast

On white

7.61
#5F3CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F3CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CB0
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CB0#FFFFFF#000000##FFFFFF
##5F3CB01.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B4
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#475871
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3cb0;
/* rgb */ color: rgb(95, 60, 176);
/* oklch */ color: oklch(46.3% 0.175 292.0);
Tailwind
colors: {
  custom: {
    50: '#9374c8',
    500: '#5f3cb0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cb0;
$custom-light: #9374c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cb0",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 176
  },
  "hsl": {
    "h": 258.103,
    "s": 49.153,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46325,
    "c": 0.17485,
    "h": 292
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#5F3CB0
secondary
#B0C385
accent
#D94FAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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