#5F2FB9#5F2FB9

#5F2FB9 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.201 H 292.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5F2FB9
RGBrgb(95, 47, 185)
HSLhsl(261, 59%, 45%)
HSVhsv(261, 75%, 73%)
CMYKcmyk(48.6%, 74.6%, 0%, 27.5%)
CIE-LABlab(33.92, 51.95, -64.73)
CIE-LCHlch(33.92, 82.99, 308.75°)
OKLaboklab(45.36% 0.0763 -0.1857)
OKLCHoklch(45.36% 0.201 292.3)
XYZxyz(14.4903, 7.9682, 46.6641)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FB9 #89B92F
analogous
#2F44B9 #5F2FB9 #A42FB9
triadic
#5F2FB9 #B95F2F #2FB95F
tetradic
#5F2FB9 #B92F44 #89B92F #2FB9A4
square
#5F2FB9 #B92F44 #89B92F #2FB9A4
split-complementary
#5F2FB9 #B9A42F #44B92F
monochromatic
#2D1657 #462388 #5F2FB9 #7F52D3 #A383DF

Accessibility & contrast

On white

8.10
#5F2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FB9
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FB9#FFFFFF#000000##FFFFFF
##5F2FB91.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#425472
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2fb9;
/* rgb */ color: rgb(95, 47, 185);
/* oklch */ color: oklch(45.4% 0.201 292.3);
Tailwind
colors: {
  custom: {
    50: '#956ccf',
    500: '#5f2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fb9;
$custom-light: #956ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fb9",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 260.87,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4536,
    "c": 0.20078,
    "h": 292.3
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#5F2FB9
secondary
#AEC97B
accent
#E345AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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