#5F2EBF#5F2EBF

#5F2EBF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.208 H 291.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5F2EBF
RGBrgb(95, 46, 191)
HSLhsl(260, 61%, 46%)
HSVhsv(260, 76%, 75%)
CMYKcmyk(50.3%, 75.9%, 0%, 25.1%)
CIE-LABlab(34.29, 54.02, -67.65)
CIE-LCHlch(34.29, 86.58, 308.61°)
OKLaboklab(45.79% 0.0755 -0.1943)
OKLCHoklch(45.79% 0.208 291.2)
XYZxyz(15.0976, 8.1479, 50.0573)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EBF #8EBF2E
analogous
#2E46BF #5F2EBF #A82EBF
triadic
#5F2EBF #BF5F2E #2EBF5F
tetradic
#5F2EBF #BF2E46 #8EBF2E #2EBFA8
square
#5F2EBF #BF2E46 #8EBF2E #2EBFA8
split-complementary
#5F2EBF #BFA82E #46BF2E
monochromatic
#2E165C #46228E #5F2EBF #8054D6 #A586E2

Accessibility & contrast

On white

7.99
#5F2EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5F2EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EBF
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EBF#FFFFFF#000000##FFFFFF
##5F2EBF1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2ebf;
/* rgb */ color: rgb(95, 46, 191);
/* oklch */ color: oklch(45.8% 0.208 291.2);
Tailwind
colors: {
  custom: {
    50: '#966cd3',
    500: '#5f2ebf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ebf;
$custom-light: #966cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ebf",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 260.276,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45786,
    "c": 0.20847,
    "h": 291.2
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#5F2EBF
secondary
#B1CB7E
accent
#E444AE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F2EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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