#5F3FE3#5F3FE3

#5F3FE3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.232 H 283.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5F3FE3
RGBrgb(95, 63, 227)
HSLhsl(252, 75%, 57%)
HSVhsv(252, 72%, 89%)
CMYKcmyk(58.1%, 72.2%, 0%, 11%)
CIE-LABlab(40.46, 55.78, -78.34)
CIE-LCHlch(40.46, 96.17, 305.45°)
OKLaboklab(51.13% 0.054 -0.2257)
OKLCHoklch(51.13% 0.232 283.5)
XYZxyz(20.3577, 11.5326, 73.8114)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FE3 #C3E33F
analogous
#3F71E3 #5F3FE3 #B13FE3
triadic
#5F3FE3 #E35F3F #3FE35F
tetradic
#5F3FE3 #E33F71 #C3E33F #3FE3B1
square
#5F3FE3 #E33F71 #C3E33F #3FE3B1
split-complementary
#5F3FE3 #E3B13F #71E33F
monochromatic
#2E1592 #3E1DC8 #5F3FE3 #8C74EB #B8AAF3

Accessibility & contrast

On white

6.35
#5F3FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5F3FE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FE3
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FE3#FFFFFF#000000##FFFFFF
##5F3FE31.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E8
Deuteranopia (green-blind)
#005AE0
Tritanopia (blue-blind)
#086C8D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f3fe3;
/* rgb */ color: rgb(95, 63, 227);
/* oklch */ color: oklch(51.1% 0.232 283.5);
Tailwind
colors: {
  custom: {
    50: '#9a77ed',
    500: '#5f3fe3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fe3;
$custom-light: #9a77ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fe3",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 227
  },
  "hsl": {
    "h": 251.707,
    "s": 74.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51126,
    "c": 0.23208,
    "h": 283.5
  },
  "luminance": 0.11534
}

Semantic roles & 50–950 ramp

primary
#5F3FE3
secondary
#D3E09D
accent
#F137CD
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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