#5F2FBE#5F2FBE

#5F2FBE is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.206 H 291.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5F2FBE
RGBrgb(95, 47, 190)
HSLhsl(260, 60%, 46%)
HSVhsv(260, 75%, 75%)
CMYKcmyk(50%, 75.3%, 0%, 25.5%)
CIE-LABlab(34.36, 53.29, -66.95)
CIE-LCHlch(34.36, 85.57, 308.52°)
OKLaboklab(45.81% 0.075 -0.1922)
OKLCHoklch(45.81% 0.206 291.3)
XYZxyz(15.0275, 8.1830, 49.4929)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FBE #8EBE2F
analogous
#2F46BE #5F2FBE #A72FBE
triadic
#5F2FBE #BE5F2F #2FBE5F
tetradic
#5F2FBE #BE2F46 #8EBE2F #2FBEA7
square
#5F2FBE #BE2F46 #8EBE2F #2FBEA7
split-complementary
#5F2FBE #BEA72F #46BE2F
monochromatic
#2E175C #46238D #5F2FBE #8055D5 #A586E1

Accessibility & contrast

On white

7.96
#5F2FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F2FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FBE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FBE#FFFFFF#000000##FFFFFF
##5F2FBE1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#3F5675
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f2fbe;
/* rgb */ color: rgb(95, 47, 190);
/* oklch */ color: oklch(45.8% 0.206 291.3);
Tailwind
colors: {
  custom: {
    50: '#966dd3',
    500: '#5f2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fbe;
$custom-light: #966dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fbe",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 260.14,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45809,
    "c": 0.20635,
    "h": 291.3
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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