#5F3DB7#5F3DB7

#5F3DB7 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.0% C 0.182 H 290.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5F3DB7
RGBrgb(95, 61, 183)
HSLhsl(257, 50%, 48%)
HSVhsv(257, 67%, 72%)
CMYKcmyk(48.1%, 66.7%, 0%, 28.2%)
CIE-LABlab(36.35, 44.17, -59.58)
CIE-LCHlch(36.35, 74.17, 306.55°)
OKLaboklab(47.04% 0.0637 -0.1707)
OKLCHoklch(47.04% 0.182 290.5)
XYZxyz(14.9329, 9.1887, 45.7774)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DB7 #95B73D
analogous
#3D58B7 #5F3DB7 #9C3DB7
triadic
#5F3DB7 #B75F3D #3DB75F
tetradic
#5F3DB7 #B73D58 #95B73D #3DB79C
square
#5F3DB7 #B73D58 #95B73D #3DB79C
split-complementary
#5F3DB7 #B79C3D #58B73D
monochromatic
#2F1E5B #472E89 #5F3DB7 #8265CC #A793DB

Accessibility & contrast

On white

7.40
#5F3DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5F3DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DB7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DB7#FFFFFF#000000##FFFFFF
##5F3DB71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#435B75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3db7;
/* rgb */ color: rgb(95, 61, 183);
/* oklch */ color: oklch(47.0% 0.182 290.5);
Tailwind
colors: {
  custom: {
    50: '#9475cd',
    500: '#5f3db7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3db7;
$custom-light: #9475cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3db7",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 183
  },
  "hsl": {
    "h": 256.721,
    "s": 50,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47038,
    "c": 0.18217,
    "h": 290.5
  },
  "luminance": 0.09189
}

Semantic roles & 50–950 ramp

primary
#5F3DB7
secondary
#B5C689
accent
#DA4EB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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