#5F2FD3#5F2FD3

#5F2FD3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.229 H 287.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5F2FD3
RGBrgb(95, 47, 211)
HSLhsl(258, 65%, 51%)
HSVhsv(258, 78%, 83%)
CMYKcmyk(55%, 77.7%, 0%, 17.3%)
CIE-LABlab(36.31, 58.94, -76.00)
CIE-LCHlch(36.31, 96.18, 307.79°)
OKLaboklab(47.76% 0.0691 -0.2187)
OKLCHoklch(47.76% 0.229 287.5)
XYZxyz(17.4902, 9.1681, 62.4634)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FD3 #A3D32F
analogous
#2F51D3 #5F2FD3 #B12FD3
triadic
#5F2FD3 #D35F2F #2FD35F
tetradic
#5F2FD3 #D32F51 #A3D32F #2FD3B1
square
#5F2FD3 #D32F51 #A3D32F #2FD3B1
split-complementary
#5F2FD3 #D3B12F #51D32F
monochromatic
#321870 #4822A2 #5F2FD3 #8662DE #AD94E8

Accessibility & contrast

On white

7.41
#5F2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F2FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FD3
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FD3#FFFFFF#000000##FFFFFF
##5F2FD31.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0051D0
Tritanopia (blue-blind)
#2C5F81
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f2fd3;
/* rgb */ color: rgb(95, 47, 211);
/* oklch */ color: oklch(47.8% 0.229 287.5);
Tailwind
colors: {
  custom: {
    50: '#996ee2',
    500: '#5f2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fd3;
$custom-light: #996ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fd3",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 257.561,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.2294,
    "h": 287.5
  },
  "luminance": 0.09169
}

Semantic roles & 50–950 ramp

primary
#5F2FD3
secondary
#BED38A
accent
#E840B7
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5F2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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