#5F2FE2#5F2FE2

#5F2FE2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.246 H 285.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5F2FE2
RGBrgb(95, 47, 226)
HSLhsl(256, 76%, 54%)
HSVhsv(256, 79%, 89%)
CMYKcmyk(58%, 79.2%, 0%, 11.4%)
CIE-LABlab(37.76, 62.95, -82.22)
CIE-LCHlch(37.76, 103.55, 307.44°)
OKLaboklab(49.21% 0.0646 -0.2369)
OKLCHoklch(49.21% 0.246 285.3)
XYZxyz(19.4591, 9.9557, 72.8330)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FE2 #B2E22F
analogous
#2F58E2 #5F2FE2 #B82FE2
triadic
#5F2FE2 #E25F2F #2FE25F
tetradic
#5F2FE2 #E22F58 #B2E22F #2FE2B8
square
#5F2FE2 #E22F58 #B2E22F #2FE2B8
split-complementary
#5F2FE2 #E2B82F #58E22F
monochromatic
#311284 #451ABA #5F2FE2 #8865E9 #B29AF1

Accessibility & contrast

On white

7.02
#5F2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5F2FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FE2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FE2#FFFFFF#000000##FFFFFF
##5F2FE21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#116589
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f2fe2;
/* rgb */ color: rgb(95, 47, 226);
/* oklch */ color: oklch(49.2% 0.246 285.3);
Tailwind
colors: {
  custom: {
    50: '#9b6fed',
    500: '#5f2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fe2;
$custom-light: #9b6fed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fe2",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 256.089,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49206,
    "c": 0.24555,
    "h": 285.3
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#5F2FE2
secondary
#C8DD90
accent
#F236C0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #5F2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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