#5F33B5#5F33B5

#5F33B5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.192 H 292.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5F33B5
RGBrgb(95, 51, 181)
HSLhsl(260, 56%, 45%)
HSVhsv(260, 72%, 71%)
CMYKcmyk(47.5%, 71.8%, 0%, 29%)
CIE-LABlab(34.27, 48.91, -61.79)
CIE-LCHlch(34.27, 78.80, 308.36°)
OKLaboklab(45.5% 0.0737 -0.1771)
OKLCHoklch(45.5% 0.192 292.6)
XYZxyz(14.2413, 8.1363, 44.5272)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33B5 #89B533
analogous
#3348B5 #5F33B5 #A033B5
triadic
#5F33B5 #B55F33 #33B55F
tetradic
#5F33B5 #B53348 #89B533 #33B5A0
square
#5F33B5 #B53348 #89B533 #33B5A0
split-complementary
#5F33B5 #B5A033 #48B533
monochromatic
#2D1856 #462685 #5F33B5 #7F56CF #A386DD

Accessibility & contrast

On white

7.99
#5F33B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5F33B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33B5
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33B5#FFFFFF#000000##FFFFFF
##5F33B51.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#445571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f33b5;
/* rgb */ color: rgb(95, 51, 181);
/* oklch */ color: oklch(45.5% 0.192 292.6);
Tailwind
colors: {
  custom: {
    50: '#946fcc',
    500: '#5f33b5',
    950: '#000000',
  },
}
SCSS
$custom: #5f33b5;
$custom-light: #946fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33b5",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 260.308,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.455,
    "c": 0.19184,
    "h": 292.6
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#5F33B5
secondary
#AEC67D
accent
#DF48AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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