#5F3CE0#5F3CE0

#5F3CE0 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.232 H 284.2°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5F3CE0
RGBrgb(95, 60, 224)
HSLhsl(253, 73%, 56%)
HSVhsv(253, 73%, 88%)
CMYKcmyk(57.6%, 73.2%, 0%, 12.2%)
CIE-LABlab(39.66, 56.43, -77.96)
CIE-LCHlch(39.66, 96.24, 305.90°)
OKLaboklab(50.47% 0.0568 -0.2246)
OKLCHoklch(50.47% 0.232 284.2)
XYZxyz(19.7856, 11.0452, 71.5959)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CE0 #BDE03C
analogous
#3C6BE0 #5F3CE0 #B13CE0
triadic
#5F3CE0 #E05F3C #3CE05F
tetradic
#5F3CE0 #E03C6B #BDE03C #3CE0B1
square
#5F3CE0 #E03C6B #BDE03C #3CE0B1
split-complementary
#5F3CE0 #E0B13C #6BE03C
monochromatic
#2F168B #411FC0 #5F3CE0 #8A71E8 #B6A6F1

Accessibility & contrast

On white

6.54
#5F3CE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5F3CE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CE0
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CE0#FFFFFF#000000##FFFFFF
##5F3CE01.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E5
Deuteranopia (green-blind)
#0058DD
Tritanopia (blue-blind)
#146A8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f3ce0;
/* rgb */ color: rgb(95, 60, 224);
/* oklch */ color: oklch(50.5% 0.232 284.2);
Tailwind
colors: {
  custom: {
    50: '#9a76eb',
    500: '#5f3ce0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ce0;
$custom-light: #9a76eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ce0",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 224
  },
  "hsl": {
    "h": 252.805,
    "s": 72.566,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50473,
    "c": 0.23165,
    "h": 284.2
  },
  "luminance": 0.11046
}

Semantic roles & 50–950 ramp

primary
#5F3CE0
secondary
#CFDE9A
accent
#EF39C8
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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