#5F3DBE#5F3DBE

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

Color values

HEX#5F3DBE
RGBrgb(95, 61, 190)
HSLhsl(256, 51%, 49%)
HSVhsv(256, 68%, 75%)
CMYKcmyk(50%, 67.9%, 0%, 25.5%)
CIE-LABlab(36.91, 46.18, -62.78)
CIE-LCHlch(36.91, 77.94, 306.33°)
OKLaboklab(47.62% 0.0627 -0.1801)
OKLCHoklch(47.62% 0.191 289.2)
XYZxyz(15.6796, 9.4874, 49.7103)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DBE #9CBE3D
analogous
#3D5CBE #5F3DBE #A03DBE
triadic
#5F3DBE #BE5F3D #3DBE5F
tetradic
#5F3DBE #BE3D5C #9CBE3D #3DBEA0
square
#5F3DBE #BE3D5C #9CBE3D #3DBEA0
split-complementary
#5F3DBE #BEA03D #5CBE3D
monochromatic
#311F61 #482E90 #5F3DBE #8469CF #AA98DE

Accessibility & contrast

On white

7.25
#5F3DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F3DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DBE
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DBE#FFFFFF#000000##FFFFFF
##5F3DBE1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#3E5D78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3dbe;
/* rgb */ color: rgb(95, 61, 190);
/* oklch */ color: oklch(47.6% 0.191 289.2);
Tailwind
colors: {
  custom: {
    50: '#9575d3',
    500: '#5f3dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dbe;
$custom-light: #9575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dbe",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 190
  },
  "hsl": {
    "h": 255.814,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47616,
    "c": 0.19069,
    "h": 289.2
  },
  "luminance": 0.09488
}

Semantic roles & 50–950 ramp

primary
#5F3DBE
secondary
#BAC98D
accent
#DB4DB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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