#5F3FCB#5F3FCB

#5F3FCB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.0% C 0.204 H 286.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5F3FCB
RGBrgb(95, 63, 203)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 69%, 80%)
CMYKcmyk(53.2%, 69%, 0%, 20.4%)
CIE-LABlab(38.37, 48.85, -67.97)
CIE-LCHlch(38.37, 83.70, 305.70°)
OKLaboklab(49% 0.0587 -0.1953)
OKLCHoklch(49% 0.204 286.7)
XYZxyz(17.2731, 10.2988, 57.5660)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FCB #ABCB3F
analogous
#3F65CB #5F3FCB #A53FCB
triadic
#5F3FCB #CB5F3F #3FCB5F
tetradic
#5F3FCB #CB3F65 #ABCB3F #3FCBA5
square
#5F3FCB #CB3F65 #ABCB3F #3FCBA5
split-complementary
#5F3FCB #CBA53F #65CB3F
monochromatic
#311F71 #472CA1 #5F3FCB #876FD8 #AF9FE5

Accessibility & contrast

On white

6.86
#5F3FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F3FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FCB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FCB#FFFFFF#000000##FFFFFF
##5F3FCB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#336380
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3fcb;
/* rgb */ color: rgb(95, 63, 203);
/* oklch */ color: oklch(49.0% 0.204 286.7);
Tailwind
colors: {
  custom: {
    50: '#9677dc',
    500: '#5f3fcb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fcb;
$custom-light: #9677dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fcb",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 203
  },
  "hsl": {
    "h": 253.714,
    "s": 57.377,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48999,
    "c": 0.20396,
    "h": 286.7
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#5F3FCB
secondary
#C3D194
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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