#5F2CBF#5F2CBF

#5F2CBF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.210 H 291.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5F2CBF
RGBrgb(95, 44, 191)
HSLhsl(261, 63%, 46%)
HSVhsv(261, 77%, 75%)
CMYKcmyk(50.3%, 77%, 0%, 25.1%)
CIE-LABlab(33.97, 54.93, -68.17)
CIE-LCHlch(33.97, 87.55, 308.86°)
OKLaboklab(45.57% 0.077 -0.1958)
OKLCHoklch(45.57% 0.21 291.5)
XYZxyz(15.0213, 7.9953, 50.0319)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CBF #8CBF2C
analogous
#2C43BF #5F2CBF #A82CBF
triadic
#5F2CBF #BF5F2C #2CBF5F
tetradic
#5F2CBF #BF2C43 #8CBF2C #2CBFA8
square
#5F2CBF #BF2C43 #8CBF2C #2CBFA8
split-complementary
#5F2CBF #BFA82C #43BF2C
monochromatic
#2E155C #46218D #5F2CBF #8051D7 #A483E2

Accessibility & contrast

On white

8.08
#5F2CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5F2CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CBF
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CBF#FFFFFF#000000##FFFFFF
##5F2CBF1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2cbf;
/* rgb */ color: rgb(95, 44, 191);
/* oklch */ color: oklch(45.6% 0.210 291.5);
Tailwind
colors: {
  custom: {
    50: '#966bd3',
    500: '#5f2cbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cbf;
$custom-light: #966bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cbf",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 260.816,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45565,
    "c": 0.21042,
    "h": 291.5
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#5F2CBF
secondary
#B0CC7B
accent
#E642AD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5F2CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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