#5A39F2#5A39F2

#5A39F2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.255 H 280.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5A39F2
RGBrgb(90, 57, 242)
HSLhsl(251, 88%, 59%)
HSVhsv(251, 76%, 95%)
CMYKcmyk(62.8%, 76.4%, 0%, 5.1%)
CIE-LABlab(40.42, 62.39, -86.92)
CIE-LCHlch(40.42, 106.99, 305.67°)
OKLaboklab(51.42% 0.0473 -0.2508)
OKLCHoklch(51.42% 0.255 280.7)
XYZxyz(21.7015, 11.5090, 85.0650)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A39F2 #D1F239
analogous
#3974F2 #5A39F2 #B739F2
triadic
#5A39F2 #F25A39 #39F25A
tetradic
#5A39F2 #F23974 #D1F239 #39F2B7
square
#5A39F2 #F23974 #D1F239 #39F2B7
split-complementary
#5A39F2 #F2B739 #74F239
monochromatic
#270BA6 #340FDF #5A39F2 #8A72F6 #BAACFA

Accessibility & contrast

On white

6.36
#5A39F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5A39F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A39F2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A39F2#FFFFFF#000000##FFFFFF
##5A39F21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a39f2;
/* rgb */ color: rgb(90, 57, 242);
/* oklch */ color: oklch(51.4% 0.255 280.7);
Tailwind
colors: {
  custom: {
    50: '#9b74f8',
    500: '#5a39f2',
    950: '#000000',
  },
}
SCSS
$custom: #5a39f2;
$custom-light: #9b74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a39f2",
  "rgb": {
    "r": 90,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 250.703,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.25527,
    "h": 280.7
  },
  "luminance": 0.11511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A39F2

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

Preview Lab → · Contrast checker → · Palette generator →

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