#5F48CA#5F48CA

#5F48CA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.192 H 285.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5F48CA
RGBrgb(95, 72, 202)
HSLhsl(251, 55%, 54%)
HSVhsv(251, 64%, 79%)
CMYKcmyk(53%, 64.4%, 0%, 20.8%)
CIE-LABlab(40.13, 43.55, -64.52)
CIE-LCHlch(40.13, 77.84, 304.02°)
OKLaboklab(50.24% 0.0506 -0.1852)
OKLCHoklch(50.24% 0.192 285.3)
XYZxyz(17.6941, 11.3309, 57.1204)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48CA #B3CA48
analogous
#4872CA #5F48CA #A048CA
triadic
#5F48CA #CA5F48 #48CA5F
tetradic
#5F48CA #CA4872 #B3CA48 #48CAA0
square
#5F48CA #CA4872 #B3CA48 #48CAA0
split-complementary
#5F48CA #CAA048 #72CA48
monochromatic
#312276 #4530A5 #5F48CA #8877D8 #B2A7E5

Accessibility & contrast

On white

6.43
#5F48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48CA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48CA#FFFFFF#000000##FFFFFF
##5F48CA1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#336882
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f48ca;
/* rgb */ color: rgb(95, 72, 202);
/* oklch */ color: oklch(50.2% 0.192 285.3);
Tailwind
colors: {
  custom: {
    50: '#967cdb',
    500: '#5f48ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f48ca;
$custom-light: #967cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48ca",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 250.615,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50241,
    "c": 0.19199,
    "h": 285.3
  },
  "luminance": 0.11332
}

Semantic roles & 50–950 ramp

primary
#5F48CA
secondary
#C9D39B
accent
#DE49C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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