#5F33B3#5F33B3

#5F33B3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.190 H 293.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5F33B3
RGBrgb(95, 51, 179)
HSLhsl(261, 56%, 45%)
HSVhsv(261, 72%, 70%)
CMYKcmyk(46.9%, 71.5%, 0%, 29.8%)
CIE-LABlab(34.10, 48.36, -60.88)
CIE-LCHlch(34.10, 77.75, 308.46°)
OKLaboklab(45.33% 0.0741 -0.1745)
OKLCHoklch(45.33% 0.19 293)
XYZxyz(14.0376, 8.0548, 43.4542)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33B3 #87B333
analogous
#3347B3 #5F33B3 #9F33B3
triadic
#5F33B3 #B35F33 #33B35F
tetradic
#5F33B3 #B33347 #87B333 #33B39F
square
#5F33B3 #B33347 #87B333 #33B39F
split-complementary
#5F33B3 #B39F33 #47B333
monochromatic
#2C1854 #462583 #5F33B3 #7F55CE #A284DC

Accessibility & contrast

On white

8.04
#5F33B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F33B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33B3
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33B3#FFFFFF#000000##FFFFFF
##5F33B31.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#46546F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f33b3;
/* rgb */ color: rgb(95, 51, 179);
/* oklch */ color: oklch(45.3% 0.190 293.0);
Tailwind
colors: {
  custom: {
    50: '#946ecb',
    500: '#5f33b3',
    950: '#000000',
  },
}
SCSS
$custom: #5f33b3;
$custom-light: #946ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33b3",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 179
  },
  "hsl": {
    "h": 260.625,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45328,
    "c": 0.18954,
    "h": 293
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#5F33B3
secondary
#ACC67C
accent
#DF49AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F33B3

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

Preview Lab → · Contrast checker → · Palette generator →

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