#5F3FE8#5F3FE8

#5F3FE8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.6% C 0.238 H 282.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5F3FE8
RGBrgb(95, 63, 232)
HSLhsl(251, 79%, 58%)
HSVhsv(251, 73%, 91%)
CMYKcmyk(59.1%, 72.8%, 0%, 9%)
CIE-LABlab(40.92, 57.22, -80.44)
CIE-LCHlch(40.92, 98.71, 305.43°)
OKLaboklab(51.58% 0.0529 -0.2318)
OKLCHoklch(51.58% 0.238 282.9)
XYZxyz(21.0578, 11.8127, 77.4987)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FE8 #C8E83F
analogous
#3F73E8 #5F3FE8 #B43FE8
triadic
#5F3FE8 #E85F3F #3FE85F
tetradic
#5F3FE8 #E83F73 #C8E83F #3FE8B4
square
#5F3FE8 #E83F73 #C8E83F #3FE8B4
split-complementary
#5F3FE8 #E8B43F #73E83F
monochromatic
#2C129A #3C19D1 #5F3FE8 #8D76EF #BAACF5

Accessibility & contrast

On white

6.24
#5F3FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F3FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FE8
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FE8#FFFFFF#000000##FFFFFF
##5F3FE81.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066ED
Deuteranopia (green-blind)
#005BE5
Tritanopia (blue-blind)
#006E90
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f3fe8;
/* rgb */ color: rgb(95, 63, 232);
/* oklch */ color: oklch(51.6% 0.238 282.9);
Tailwind
colors: {
  custom: {
    50: '#9b78f1',
    500: '#5f3fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fe8;
$custom-light: #9b78f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fe8",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 232
  },
  "hsl": {
    "h": 251.361,
    "s": 78.605,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51584,
    "c": 0.23781,
    "h": 282.9
  },
  "luminance": 0.11814
}

Semantic roles & 50–950 ramp

primary
#5F3FE8
secondary
#D6E3A0
accent
#F533D0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F3FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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