#5F3DC9#5F3DC9

#5F3DC9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.204 H 287.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5F3DC9
RGBrgb(95, 61, 201)
HSLhsl(255, 56%, 51%)
HSVhsv(255, 70%, 79%)
CMYKcmyk(52.7%, 69.7%, 0%, 21.2%)
CIE-LABlab(37.82, 49.34, -67.72)
CIE-LCHlch(37.82, 83.79, 306.07°)
OKLaboklab(48.55% 0.0608 -0.1946)
OKLCHoklch(48.55% 0.204 287.4)
XYZxyz(16.9276, 9.9866, 56.2827)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DC9 #A7C93D
analogous
#3D61C9 #5F3DC9 #A53DC9
triadic
#5F3DC9 #C95F3D #3DC95F
tetradic
#5F3DC9 #C93D61 #A7C93D #3DC9A5
square
#5F3DC9 #C93D61 #A7C93D #3DC9A5
split-complementary
#5F3DC9 #C9A53D #61C93D
monochromatic
#321E6D #472C9D #5F3DC9 #866DD6 #AE9DE4

Accessibility & contrast

On white

7.01
#5F3DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5F3DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DC9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DC9#FFFFFF#000000##FFFFFF
##5F3DC91.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#35617E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3dc9;
/* rgb */ color: rgb(95, 61, 201);
/* oklch */ color: oklch(48.6% 0.204 287.4);
Tailwind
colors: {
  custom: {
    50: '#9675da',
    500: '#5f3dc9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dc9;
$custom-light: #9675da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dc9",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 201
  },
  "hsl": {
    "h": 254.571,
    "s": 56.452,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48551,
    "c": 0.20386,
    "h": 287.4
  },
  "luminance": 0.09987
}

Semantic roles & 50–950 ramp

primary
#5F3DC9
secondary
#C1D092
accent
#E048BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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