#5F33C2#5F33C2

#5F33C2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.207 H 290.0°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5F33C2
RGBrgb(95, 51, 194)
HSLhsl(258, 58%, 48%)
HSVhsv(258, 74%, 76%)
CMYKcmyk(51%, 73.7%, 0%, 23.9%)
CIE-LABlab(35.39, 52.47, -67.61)
CIE-LCHlch(35.39, 85.58, 307.81°)
OKLaboklab(46.64% 0.0707 -0.1942)
OKLCHoklch(46.64% 0.207 290)
XYZxyz(15.6379, 8.6949, 51.8828)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33C2 #96C233
analogous
#334EC2 #5F33C2 #A733C2
triadic
#5F33C2 #C25F33 #33C25F
tetradic
#5F33C2 #C2334E #96C233 #33C2A7
square
#5F33C2 #C2334E #96C233 #33C2A7
split-complementary
#5F33C2 #C2A733 #4EC233
monochromatic
#301A61 #472692 #5F33C2 #825ED5 #A88EE1

Accessibility & contrast

On white

7.67
#5F33C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F33C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33C2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33C2#FFFFFF#000000##FFFFFF
##5F33C21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#3C5A78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f33c2;
/* rgb */ color: rgb(95, 51, 194);
/* oklch */ color: oklch(46.6% 0.207 290.0);
Tailwind
colors: {
  custom: {
    50: '#966fd6',
    500: '#5f33c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f33c2;
$custom-light: #966fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33c2",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 194
  },
  "hsl": {
    "h": 258.462,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46642,
    "c": 0.2067,
    "h": 290
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#5F33C2
secondary
#B6CC85
accent
#E246B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F33C2

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

Preview Lab → · Contrast checker → · Palette generator →

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