#5F2FC9#5F2FC9

#5F2FC9 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.8% C 0.218 H 289.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5F2FC9
RGBrgb(95, 47, 201)
HSLhsl(259, 62%, 49%)
HSVhsv(259, 77%, 79%)
CMYKcmyk(52.7%, 76.6%, 0%, 21.2%)
CIE-LABlab(35.37, 56.25, -71.74)
CIE-LCHlch(35.37, 91.17, 308.10°)
OKLaboklab(46.82% 0.072 -0.2063)
OKLCHoklch(46.82% 0.219 289.2)
XYZxyz(16.2754, 8.6822, 56.0653)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FC9 #99C92F
analogous
#2F4CC9 #5F2FC9 #AC2FC9
triadic
#5F2FC9 #C95F2F #2FC95F
tetradic
#5F2FC9 #C92F4C #99C92F #2FC9AC
square
#5F2FC9 #C92F4C #99C92F #2FC9AC
split-complementary
#5F2FC9 #C9AC2F #4CC92F
monochromatic
#301866 #482397 #5F2FC9 #835CD9 #A98EE5

Accessibility & contrast

On white

7.67
#5F2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F2FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FC9
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FC9#FFFFFF#000000##FFFFFF
##5F2FC91.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#365B7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f2fc9;
/* rgb */ color: rgb(95, 47, 201);
/* oklch */ color: oklch(46.8% 0.218 289.2);
Tailwind
colors: {
  custom: {
    50: '#976ddb',
    500: '#5f2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fc9;
$custom-light: #976ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fc9",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 258.701,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46818,
    "c": 0.2185,
    "h": 289.2
  },
  "luminance": 0.08683
}

Semantic roles & 50–950 ramp

primary
#5F2FC9
secondary
#B8CF85
accent
#E543B3
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5F2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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