#5F2DBF#5F2DBF

#5F2DBF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.209 H 291.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5F2DBF
RGBrgb(95, 45, 191)
HSLhsl(261, 62%, 46%)
HSVhsv(261, 76%, 75%)
CMYKcmyk(50.3%, 76.4%, 0%, 25.1%)
CIE-LABlab(34.13, 54.48, -67.92)
CIE-LCHlch(34.13, 87.07, 308.74°)
OKLaboklab(45.67% 0.0763 -0.1951)
OKLCHoklch(45.67% 0.209 291.4)
XYZxyz(15.0590, 8.0707, 50.0444)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DBF #8DBF2D
analogous
#2D44BF #5F2DBF #A82DBF
triadic
#5F2DBF #BF5F2D #2DBF5F
tetradic
#5F2DBF #BF2D44 #8DBF2D #2DBFA8
square
#5F2DBF #BF2D44 #8DBF2D #2DBFA8
split-complementary
#5F2DBF #BFA82D #44BF2D
monochromatic
#2E165C #46218D #5F2DBF #8053D6 #A484E2

Accessibility & contrast

On white

8.03
#5F2DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F2DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DBF
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DBF#FFFFFF#000000##FFFFFF
##5F2DBF1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#3E5675
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2dbf;
/* rgb */ color: rgb(95, 45, 191);
/* oklch */ color: oklch(45.7% 0.209 291.4);
Tailwind
colors: {
  custom: {
    50: '#966cd3',
    500: '#5f2dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dbf;
$custom-light: #966cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dbf",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 260.548,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45674,
    "c": 0.20945,
    "h": 291.4
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#5F2DBF
secondary
#B0CB7C
accent
#E543AD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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