#5F2FB2#5F2FB2

#5F2FB2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.193 H 293.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB2
RGBrgb(95, 47, 178)
HSLhsl(262, 58%, 44%)
HSVhsv(262, 74%, 70%)
CMYKcmyk(46.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(33.31, 50.07, -61.57)
CIE-LCHlch(33.31, 79.36, 309.12°)
OKLaboklab(44.74% 0.0779 -0.1765)
OKLCHoklch(44.74% 0.193 293.8)
XYZxyz(13.7695, 7.6799, 42.8677)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB2 #82B22F
analogous
#2F41B2 #5F2FB2 #A12FB2
triadic
#5F2FB2 #B25F2F #2FB25F
tetradic
#5F2FB2 #B22F41 #82B22F #2FB2A1
square
#5F2FB2 #B22F41 #82B22F #2FB2A1
split-complementary
#5F2FB2 #B2A12F #41B22F
monochromatic
#2B1551 #452282 #5F2FB2 #7E4ED0 #A17EDD

Accessibility & contrast

On white

8.28
#5F2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2FB2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB2#FFFFFF#000000##FFFFFF
##5F2FB21.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#46516E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2fb2;
/* rgb */ color: rgb(95, 47, 178);
/* oklch */ color: oklch(44.7% 0.193 293.8);
Tailwind
colors: {
  custom: {
    50: '#946cca',
    500: '#5f2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb2;
$custom-light: #946cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb2",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 261.985,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44743,
    "c": 0.19292,
    "h": 293.8
  },
  "luminance": 0.0768
}

Semantic roles & 50–950 ramp

primary
#5F2FB2
secondary
#A9C677
accent
#E146A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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