#5F48C8#5F48C8

#5F48C8 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.189 H 285.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5F48C8
RGBrgb(95, 72, 200)
HSLhsl(251, 54%, 53%)
HSVhsv(251, 64%, 78%)
CMYKcmyk(52.5%, 64%, 0%, 21.6%)
CIE-LABlab(39.98, 42.95, -63.62)
CIE-LCHlch(39.98, 76.76, 304.02°)
OKLaboklab(50.08% 0.0508 -0.1825)
OKLCHoklch(50.08% 0.189 285.5)
XYZxyz(17.4589, 11.2368, 55.8814)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48C8 #B1C848
analogous
#4871C8 #5F48C8 #9F48C8
triadic
#5F48C8 #C85F48 #48C85F
tetradic
#5F48C8 #C84871 #B1C848 #48C89F
square
#5F48C8 #C84871 #B1C848 #48C89F
split-complementary
#5F48C8 #C89F48 #71C848
monochromatic
#312373 #4531A2 #5F48C8 #8877D6 #B1A6E4

Accessibility & contrast

On white

6.47
#5F48C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5F48C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48C8
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48C8#FFFFFF#000000##FFFFFF
##5F48C81.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#356781
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f48c8;
/* rgb */ color: rgb(95, 72, 200);
/* oklch */ color: oklch(50.1% 0.189 285.5);
Tailwind
colors: {
  custom: {
    50: '#957cda',
    500: '#5f48c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f48c8;
$custom-light: #957cda;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48c8",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 200
  },
  "hsl": {
    "h": 250.781,
    "s": 53.782,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.18947,
    "h": 285.5
  },
  "luminance": 0.11238
}

Semantic roles & 50–950 ramp

primary
#5F48C8
secondary
#C8D19A
accent
#DD4BC3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F48C8

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

Preview Lab → · Contrast checker → · Palette generator →

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