#5F48CD#5F48CD

#5F48CD is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.5% C 0.196 H 284.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5F48CD
RGBrgb(95, 72, 205)
HSLhsl(250, 57%, 54%)
HSVhsv(250, 65%, 80%)
CMYKcmyk(53.7%, 64.9%, 0%, 19.6%)
CIE-LABlab(40.37, 44.45, -65.87)
CIE-LCHlch(40.37, 79.47, 304.01°)
OKLaboklab(50.49% 0.0502 -0.1892)
OKLCHoklch(50.49% 0.196 284.9)
XYZxyz(18.0528, 11.4744, 59.0093)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48CD #B6CD48
analogous
#4874CD #5F48CD #A248CD
triadic
#5F48CD #CD5F48 #48CD5F
tetradic
#5F48CD #CD4874 #B6CD48 #48CDA2
square
#5F48CD #CD4874 #B6CD48 #48CDA2
split-complementary
#5F48CD #CDA248 #74CD48
monochromatic
#302179 #442EA9 #5F48CD #8978DA #B3A8E7

Accessibility & contrast

On white

6.37
#5F48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F48CD
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48CD#FFFFFF#000000##FFFFFF
##5F48CD1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#306984
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f48cd;
/* rgb */ color: rgb(95, 72, 205);
/* oklch */ color: oklch(50.5% 0.196 284.9);
Tailwind
colors: {
  custom: {
    50: '#967cdd',
    500: '#5f48cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f48cd;
$custom-light: #967cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48cd",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 250.376,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50485,
    "c": 0.19574,
    "h": 284.9
  },
  "luminance": 0.11475
}

Semantic roles & 50–950 ramp

primary
#5F48CD
secondary
#CBD59C
accent
#E047C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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