#5939F2#5939F2

#5939F2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.255 H 280.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5939F2
RGBrgb(89, 57, 242)
HSLhsl(250, 88%, 59%)
HSVhsv(250, 76%, 95%)
CMYKcmyk(63.2%, 76.4%, 0%, 5.1%)
CIE-LABlab(40.34, 62.29, -87.05)
CIE-LCHlch(40.34, 107.04, 305.58°)
OKLaboklab(51.34% 0.046 -0.2513)
OKLCHoklch(51.34% 0.255 280.4)
XYZxyz(21.6049, 11.4592, 85.0605)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939F2 #D2F239
analogous
#3975F2 #5939F2 #B539F2
triadic
#5939F2 #F25939 #39F259
tetradic
#5939F2 #F23975 #D2F239 #39F2B5
square
#5939F2 #F23975 #D2F239 #39F2B5
split-complementary
#5939F2 #F2B539 #75F239
monochromatic
#260BA6 #330FDF #5939F2 #8972F6 #B9ACFA

Accessibility & contrast

On white

6.38
#5939F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5939F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5939F2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939F2#FFFFFF#000000##FFFFFF
##5939F21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.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: #5939f2;
/* rgb */ color: rgb(89, 57, 242);
/* oklch */ color: oklch(51.3% 0.255 280.4);
Tailwind
colors: {
  custom: {
    50: '#9a74f8',
    500: '#5939f2',
    950: '#000000',
  },
}
SCSS
$custom: #5939f2;
$custom-light: #9a74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5939f2",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 250.378,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.51341,
    "c": 0.25545,
    "h": 280.4
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#5939F2
secondary
#DBE89F
accent
#FE2AD9
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5939F2

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

Preview Lab → · Contrast checker → · Palette generator →

#5939F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva