#5F37DA#5F37DA

#5F37DA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.230 H 285.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5F37DA
RGBrgb(95, 55, 218)
HSLhsl(255, 69%, 54%)
HSVhsv(255, 75%, 85%)
CMYKcmyk(56.4%, 74.8%, 0%, 14.5%)
CIE-LABlab(38.25, 57.18, -76.84)
CIE-LCHlch(38.25, 95.78, 306.65°)
OKLaboklab(49.31% 0.0618 -0.2213)
OKLCHoklch(49.31% 0.23 285.6)
XYZxyz(18.7366, 10.2261, 67.3026)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F37DA #B2DA37
analogous
#3760DA #5F37DA #B037DA
triadic
#5F37DA #DA5F37 #37DA5F
tetradic
#5F37DA #DA3760 #B2DA37 #37DAB0
square
#5F37DA #DA3760 #B2DA37 #37DAB0
split-complementary
#5F37DA #DAB037 #60DA37
monochromatic
#31187F #4521B3 #5F37DA #886BE4 #B29EED

Accessibility & contrast

On white

6.90
#5F37DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F37DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F37DA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F37DA#FFFFFF#000000##FFFFFF
##5F37DA1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDF
Deuteranopia (green-blind)
#0055D7
Tritanopia (blue-blind)
#216586
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f37da;
/* rgb */ color: rgb(95, 55, 218);
/* oklch */ color: oklch(49.3% 0.230 285.6);
Tailwind
colors: {
  custom: {
    50: '#9972e7',
    500: '#5f37da',
    950: '#000000',
  },
}
SCSS
$custom: #5f37da;
$custom-light: #9972e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f37da",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 218
  },
  "hsl": {
    "h": 254.724,
    "s": 68.776,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49313,
    "c": 0.22973,
    "h": 285.6
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#5F37DA
secondary
#C8D993
accent
#EC3CC1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F37DA

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

Preview Lab → · Contrast checker → · Palette generator →

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