#5F33B7#5F33B7

#5F33B7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.194 H 292.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5F33B7
RGBrgb(95, 51, 183)
HSLhsl(260, 56%, 46%)
HSVhsv(260, 72%, 72%)
CMYKcmyk(48.1%, 72.1%, 0%, 28.2%)
CIE-LABlab(34.43, 49.45, -62.70)
CIE-LCHlch(34.43, 79.85, 308.27°)
OKLaboklab(45.67% 0.0733 -0.1798)
OKLCHoklch(45.67% 0.194 292.2)
XYZxyz(14.4480, 8.2189, 45.6157)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F33B7 #8BB733
analogous
#3349B7 #5F33B7 #A133B7
triadic
#5F33B7 #B75F33 #33B75F
tetradic
#5F33B7 #B73349 #8BB733 #33B7A1
square
#5F33B7 #B73349 #8BB733 #33B7A1
split-complementary
#5F33B7 #B7A133 #49B733
monochromatic
#2D1857 #462687 #5F33B7 #7F57D0 #A487DE

Accessibility & contrast

On white

7.94
#5F33B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F33B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F33B7
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F33B7#FFFFFF#000000##FFFFFF
##5F33B71.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#435572
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f33b7;
/* rgb */ color: rgb(95, 51, 183);
/* oklch */ color: oklch(45.7% 0.194 292.2);
Tailwind
colors: {
  custom: {
    50: '#956fce',
    500: '#5f33b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f33b7;
$custom-light: #956fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f33b7",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 183
  },
  "hsl": {
    "h": 260,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.19415,
    "h": 292.2
  },
  "luminance": 0.08219
}

Semantic roles & 50–950 ramp

primary
#5F33B7
secondary
#AFC77F
accent
#E048AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F33B7

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

Preview Lab → · Contrast checker → · Palette generator →

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