#5F2FB0#5F2FB0

#5F2FB0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.191 H 294.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB0
RGBrgb(95, 47, 176)
HSLhsl(262, 58%, 44%)
HSVhsv(262, 73%, 69%)
CMYKcmyk(46%, 73.3%, 0%, 31%)
CIE-LABlab(33.14, 49.54, -60.66)
CIE-LCHlch(33.14, 78.32, 309.24°)
OKLaboklab(44.57% 0.0784 -0.1738)
OKLCHoklch(44.57% 0.191 294.3)
XYZxyz(13.5702, 7.6001, 41.8179)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB0 #80B02F
analogous
#2F3FB0 #5F2FB0 #9F2FB0
triadic
#5F2FB0 #B05F2F #2FB05F
tetradic
#5F2FB0 #B02F3F #80B02F #2FB09F
square
#5F2FB0 #B02F3F #80B02F #2FB09F
split-complementary
#5F2FB0 #B09F2F #3FB02F
monochromatic
#2B154F #452280 #5F2FB0 #7D4DCF #A17DDC

Accessibility & contrast

On white

8.33
#5F2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5F2FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB0
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB0#FFFFFF#000000##FFFFFF
##5F2FB01.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2fb0;
/* rgb */ color: rgb(95, 47, 176);
/* oklch */ color: oklch(44.6% 0.191 294.3);
Tailwind
colors: {
  custom: {
    50: '#946cc9',
    500: '#5f2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb0;
$custom-light: #946cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb0",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 262.326,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44569,
    "c": 0.19066,
    "h": 294.3
  },
  "luminance": 0.07601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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