#5F48CF#5F48CF

#5F48CF is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.6% C 0.198 H 284.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5F48CF
RGBrgb(95, 72, 207)
HSLhsl(250, 58%, 55%)
HSVhsv(250, 65%, 81%)
CMYKcmyk(54.1%, 65.2%, 0%, 18.8%)
CIE-LABlab(40.53, 45.05, -66.77)
CIE-LCHlch(40.53, 80.54, 304.00°)
OKLaboklab(50.65% 0.05 -0.1918)
OKLCHoklch(50.65% 0.198 284.6)
XYZxyz(18.2958, 11.5716, 60.2889)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48CF #B8CF48
analogous
#4875CF #5F48CF #A248CF
triadic
#5F48CF #CF5F48 #48CF5F
tetradic
#5F48CF #CF4875 #B8CF48 #48CFA2
square
#5F48CF #CF4875 #B8CF48 #48CFA2
split-complementary
#5F48CF #CFA248 #75CF48
monochromatic
#30217C #432DAD #5F48CF #8978DC #B4A9E8

Accessibility & contrast

On white

6.34
#5F48CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5F48CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48CF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48CF#FFFFFF#000000##FFFFFF
##5F48CF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#2E6A85
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f48cf;
/* rgb */ color: rgb(95, 72, 207);
/* oklch */ color: oklch(50.6% 0.198 284.6);
Tailwind
colors: {
  custom: {
    50: '#967cdf',
    500: '#5f48cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f48cf;
$custom-light: #967cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48cf",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 207
  },
  "hsl": {
    "h": 250.222,
    "s": 58.442,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50649,
    "c": 0.19822,
    "h": 284.6
  },
  "luminance": 0.11573
}

Semantic roles & 50–950 ramp

primary
#5F48CF
secondary
#CCD69D
accent
#E246C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F48CF

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

Preview Lab → · Contrast checker → · Palette generator →

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