#5F2FB3#5F2FB3

#5F2FB3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.194 H 293.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB3
RGBrgb(95, 47, 179)
HSLhsl(262, 58%, 44%)
HSVhsv(262, 74%, 70%)
CMYKcmyk(46.9%, 73.7%, 0%, 29.8%)
CIE-LABlab(33.39, 50.34, -62.03)
CIE-LCHlch(33.39, 79.88, 309.06°)
OKLaboklab(44.83% 0.0777 -0.1778)
OKLCHoklch(44.83% 0.194 293.6)
XYZxyz(13.8703, 7.7202, 43.3984)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB3 #83B32F
analogous
#2F41B3 #5F2FB3 #A12FB3
triadic
#5F2FB3 #B35F2F #2FB35F
tetradic
#5F2FB3 #B32F41 #83B32F #2FB3A1
square
#5F2FB3 #B32F41 #83B32F #2FB3A1
split-complementary
#5F2FB3 #B3A12F #41B32F
monochromatic
#2C1652 #452283 #5F2FB3 #7E4FD1 #A17FDD

Accessibility & contrast

On white

8.25
#5F2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB3
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB3#FFFFFF#000000##FFFFFF
##5F2FB31.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#46526E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2fb3;
/* rgb */ color: rgb(95, 47, 179);
/* oklch */ color: oklch(44.8% 0.194 293.6);
Tailwind
colors: {
  custom: {
    50: '#946ccb',
    500: '#5f2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb3;
$custom-light: #946ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb3",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 261.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.19405,
    "h": 293.6
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#5F2FB3
secondary
#AAC678
accent
#E246A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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