#5F2FB1#5F2FB1

#5F2FB1 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.192 H 294.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB1
RGBrgb(95, 47, 177)
HSLhsl(262, 58%, 44%)
HSVhsv(262, 73%, 69%)
CMYKcmyk(46.3%, 73.4%, 0%, 30.6%)
CIE-LABlab(33.22, 49.80, -61.12)
CIE-LCHlch(33.22, 78.84, 309.18°)
OKLaboklab(44.66% 0.0782 -0.1751)
OKLCHoklch(44.66% 0.192 294.1)
XYZxyz(13.6695, 7.6399, 42.3409)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB1 #81B12F
analogous
#2F40B1 #5F2FB1 #A02FB1
triadic
#5F2FB1 #B15F2F #2FB15F
tetradic
#5F2FB1 #B12F40 #81B12F #2FB1A0
square
#5F2FB1 #B12F40 #81B12F #2FB1A0
split-complementary
#5F2FB1 #B1A02F #40B12F
monochromatic
#2B1550 #452281 #5F2FB1 #7E4DD0 #A17EDD

Accessibility & contrast

On white

8.31
#5F2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5F2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB1
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB1#FFFFFF#000000##FFFFFF
##5F2FB11.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#47516D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2fb1;
/* rgb */ color: rgb(95, 47, 177);
/* oklch */ color: oklch(44.7% 0.192 294.1);
Tailwind
colors: {
  custom: {
    50: '#946cc9',
    500: '#5f2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb1;
$custom-light: #946cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb1",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 262.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.19179,
    "h": 294.1
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#5F2FB1
secondary
#A8C576
accent
#E147A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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