#5B39F2#5B39F2

#5B39F2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.255 H 281.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5B39F2
RGBrgb(91, 57, 242)
HSLhsl(251, 88%, 59%)
HSVhsv(251, 76%, 95%)
CMYKcmyk(62.4%, 76.4%, 0%, 5.1%)
CIE-LABlab(40.51, 62.49, -86.78)
CIE-LCHlch(40.51, 106.94, 305.76°)
OKLaboklab(51.5% 0.0487 -0.2504)
OKLCHoklch(51.5% 0.255 281)
XYZxyz(21.7995, 11.5596, 85.0696)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39F2 #D0F239
analogous
#3973F2 #5B39F2 #B739F2
triadic
#5B39F2 #F25B39 #39F25B
tetradic
#5B39F2 #F23973 #D0F239 #39F2B7
square
#5B39F2 #F23973 #D0F239 #39F2B7
split-complementary
#5B39F2 #F2B739 #73F239
monochromatic
#270BA6 #350FDF #5B39F2 #8B72F6 #BAACFA

Accessibility & contrast

On white

6.34
#5B39F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5B39F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B39F2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39F2#FFFFFF#000000##FFFFFF
##5B39F21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#0059EF
Tritanopia (blue-blind)
#007095
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b39f2;
/* rgb */ color: rgb(91, 57, 242);
/* oklch */ color: oklch(51.5% 0.255 281.0);
Tailwind
colors: {
  custom: {
    50: '#9b74f8',
    500: '#5b39f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b39f2;
$custom-light: #9b74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39f2",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 251.027,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51497,
    "c": 0.25511,
    "h": 281
  },
  "luminance": 0.11561
}

Semantic roles & 50–950 ramp

primary
#5B39F2
secondary
#DBE89F
accent
#FE2AD7
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5B39F2

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

Preview Lab → · Contrast checker → · Palette generator →

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