#5F3FC8#5F3FC8

#5F3FC8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.7% C 0.200 H 287.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5F3FC8
RGBrgb(95, 63, 200)
HSLhsl(254, 55%, 52%)
HSVhsv(254, 69%, 78%)
CMYKcmyk(52.5%, 68.5%, 0%, 21.6%)
CIE-LABlab(38.12, 47.98, -66.64)
CIE-LCHlch(38.12, 82.11, 305.75°)
OKLaboklab(48.74% 0.0592 -0.1914)
OKLCHoklch(48.74% 0.2 287.2)
XYZxyz(16.9191, 10.1572, 55.7014)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FC8 #A8C83F
analogous
#3F64C8 #5F3FC8 #A43FC8
triadic
#5F3FC8 #C85F3F #3FC85F
tetradic
#5F3FC8 #C83F64 #A8C83F #3FC8A4
square
#5F3FC8 #C83F64 #A8C83F #3FC8A4
split-complementary
#5F3FC8 #C8A43F #64C83F
monochromatic
#321F6D #472D9D #5F3FC8 #876FD6 #AE9EE3

Accessibility & contrast

On white

6.93
#5F3FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5F3FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FC8
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FC8#FFFFFF#000000##FFFFFF
##5F3FC81.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#36627F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3fc8;
/* rgb */ color: rgb(95, 63, 200);
/* oklch */ color: oklch(48.7% 0.200 287.2);
Tailwind
colors: {
  custom: {
    50: '#9676da',
    500: '#5f3fc8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fc8;
$custom-light: #9676da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fc8",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 200
  },
  "hsl": {
    "h": 254.015,
    "s": 55.466,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48743,
    "c": 0.20037,
    "h": 287.2
  },
  "luminance": 0.10158
}

Semantic roles & 50–950 ramp

primary
#5F3FC8
secondary
#C1D093
accent
#DF49BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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