#5F3CC0#5F3CC0

#5F3CC0 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.6% C 0.194 H 289.0°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5F3CC0
RGBrgb(95, 60, 192)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 69%, 75%)
CMYKcmyk(50.5%, 68.7%, 0%, 24.7%)
CIE-LABlab(36.87, 47.29, -64.01)
CIE-LCHlch(36.87, 79.59, 306.46°)
OKLaboklab(47.64% 0.0633 -0.1837)
OKLCHoklch(47.64% 0.194 289)
XYZxyz(15.8468, 9.4697, 50.8518)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CC0 #9DC03C
analogous
#3C5BC0 #5F3CC0 #A13CC0
triadic
#5F3CC0 #C05F3C #3CC05F
tetradic
#5F3CC0 #C03C5B #9DC03C #3CC0A1
square
#5F3CC0 #C03C5B #9DC03C #3CC0A1
split-complementary
#5F3CC0 #C0A13C #5BC03C
monochromatic
#311F63 #482D91 #5F3CC0 #8469D0 #AB98DF

Accessibility & contrast

On white

7.26
#5F3CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F3CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CC0
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CC0#FFFFFF#000000##FFFFFF
##5F3CC01.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#3D5E79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3cc0;
/* rgb */ color: rgb(95, 60, 192);
/* oklch */ color: oklch(47.6% 0.194 289.0);
Tailwind
colors: {
  custom: {
    50: '#9574d4',
    500: '#5f3cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cc0;
$custom-light: #9574d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cc0",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 192
  },
  "hsl": {
    "h": 255.909,
    "s": 52.381,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47643,
    "c": 0.19429,
    "h": 289
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#5F3CC0
secondary
#BACA8D
accent
#DC4CB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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