#5F2EEE#5F2EEE

#5F2EEE is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.3% C 0.259 H 283.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2EEE
RGBrgb(95, 46, 238)
HSLhsl(255, 85%, 56%)
HSVhsv(255, 81%, 93%)
CMYKcmyk(60.1%, 80.7%, 0%, 6.7%)
CIE-LABlab(38.83, 66.54, -87.28)
CIE-LCHlch(38.83, 109.76, 307.32°)
OKLaboklab(50.3% 0.0613 -0.2517)
OKLCHoklch(50.3% 0.259 283.7)
XYZxyz(21.1242, 10.5585, 81.7972)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EEE #BDEE2E
analogous
#2E5DEE #5F2EEE #BF2EEE
triadic
#5F2EEE #EE5F2E #2EEE5F
tetradic
#5F2EEE #EE2E5D #BDEE2E #2EEEBF
square
#5F2EEE #EE2E5D #BDEE2E #2EEEBF
split-complementary
#5F2EEE #EEBF2E #5DEE2E
monochromatic
#2F0C95 #4111CE #5F2EEE #8A67F3 #B69FF7

Accessibility & contrast

On white

6.75
#5F2EEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F2EEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F2EEE
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EEE#FFFFFF#000000##FFFFFF
##5F2EEE1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061F3
Deuteranopia (green-blind)
#0055EB
Tritanopia (blue-blind)
#006990
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f2eee;
/* rgb */ color: rgb(95, 46, 238);
/* oklch */ color: oklch(50.3% 0.259 283.7);
Tailwind
colors: {
  custom: {
    50: '#9d6ff5',
    500: '#5f2eee',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eee;
$custom-light: #9d6ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eee",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 238
  },
  "hsl": {
    "h": 255.312,
    "s": 84.956,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.25903,
    "h": 283.7
  },
  "luminance": 0.1056
}

Semantic roles & 50–950 ramp

primary
#5F2EEE
secondary
#CFE494
accent
#FB2DC6
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5F2EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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