#5F2EFF#5F2EFF

#5F2EFF is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 52.0% C 0.277 H 281.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5F2EFF
RGBrgb(95, 46, 255)
HSLhsl(254, 100%, 59%)
HSVhsv(254, 82%, 100%)
CMYKcmyk(62.7%, 82%, 0%, 0%)
CIE-LABlab(40.58, 71.00, -93.94)
CIE-LCHlch(40.58, 117.76, 307.08°)
OKLaboklab(52.02% 0.0558 -0.271)
OKLCHoklch(52.02% 0.277 281.6)
XYZxyz(23.7406, 11.6051, 95.5773)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EFF #CEFF2E
analogous
#2E66FF #5F2EFF #C82EFF
triadic
#5F2EFF #FF5F2E #2EFF5F
tetradic
#5F2EFF #FF2E66 #CEFF2E #2EFFC8
square
#5F2EFF #FF2E66 #CEFF2E #2EFFC8
split-complementary
#5F2EFF #FFC82E #66FF2E
monochromatic
#2A00B3 #3800F0 #5F2EFF #8E6BFF #BDA8FF

Accessibility & contrast

On white

6.32
#5F2EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5F2EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F2EFF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EFF#FFFFFF#000000##FFFFFF
##5F2EFF1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0058FB
Tritanopia (blue-blind)
#00719A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f2eff;
/* rgb */ color: rgb(95, 46, 255);
/* oklch */ color: oklch(52.0% 0.277 281.6);
Tailwind
colors: {
  custom: {
    50: '#a070ff',
    500: '#5f2eff',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eff;
$custom-light: #a070ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eff",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 254.067,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5202,
    "c": 0.27673,
    "h": 281.6
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#5F2EFF
secondary
#DAED9B
accent
#FF29CD
background
#FBF7FF
surface
#F5EDFF
border
#CFC8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #5F2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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