#5F3FC9#5F3FC9

#5F3FC9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.202 H 287.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5F3FC9
RGBrgb(95, 63, 201)
HSLhsl(254, 56%, 52%)
HSVhsv(254, 69%, 79%)
CMYKcmyk(52.7%, 68.7%, 0%, 21.2%)
CIE-LABlab(38.21, 48.27, -67.09)
CIE-LCHlch(38.21, 82.64, 305.73°)
OKLaboklab(48.83% 0.059 -0.1927)
OKLCHoklch(48.83% 0.202 287)
XYZxyz(17.0363, 10.2041, 56.3189)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FC9 #A9C93F
analogous
#3F64C9 #5F3FC9 #A43FC9
triadic
#5F3FC9 #C95F3F #3FC95F
tetradic
#5F3FC9 #C93F64 #A9C93F #3FC9A4
square
#5F3FC9 #C93F64 #A9C93F #3FC9A4
split-complementary
#5F3FC9 #C9A43F #64C93F
monochromatic
#321F6F #472D9E #5F3FC9 #876FD6 #AF9FE4

Accessibility & contrast

On white

6.91
#5F3FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5F3FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FC9
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FC9#FFFFFF#000000##FFFFFF
##5F3FC91.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#35637F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3fc9;
/* rgb */ color: rgb(95, 63, 201);
/* oklch */ color: oklch(48.8% 0.202 287.0);
Tailwind
colors: {
  custom: {
    50: '#9676da',
    500: '#5f3fc9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fc9;
$custom-light: #9676da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fc9",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 201
  },
  "hsl": {
    "h": 253.913,
    "s": 56.098,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48828,
    "c": 0.20157,
    "h": 287
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#5F3FC9
secondary
#C2D094
accent
#DF48BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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