#5F4BC0#5F4BC0

#5F4BC0 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 49.9% C 0.175 H 286.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5F4BC0
RGBrgb(95, 75, 192)
HSLhsl(250, 48%, 52%)
HSVhsv(250, 61%, 75%)
CMYKcmyk(50.5%, 60.9%, 0%, 24.7%)
CIE-LABlab(40.03, 38.79, -58.87)
CIE-LCHlch(40.03, 70.50, 303.38°)
OKLaboklab(49.93% 0.0483 -0.1686)
OKLCHoklch(49.93% 0.175 286)
XYZxyz(16.7470, 11.2700, 51.1519)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BC0 #ACC04B
analogous
#4B72C0 #5F4BC0 #994BC0
triadic
#5F4BC0 #C05F4B #4BC05F
tetradic
#5F4BC0 #C04B72 #ACC04B #4BC099
square
#5F4BC0 #C04B72 #ACC04B #4BC099
split-complementary
#5F4BC0 #C0994B #72C04B
monochromatic
#31256B #463598 #5F4BC0 #8778D0 #B0A6E0

Accessibility & contrast

On white

6.45
#5F4BC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F4BC0
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BC0#FFFFFF#000000##FFFFFF
##5F4BC01.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#3B677E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4bc0;
/* rgb */ color: rgb(95, 75, 192);
/* oklch */ color: oklch(49.9% 0.175 286.0);
Tailwind
colors: {
  custom: {
    50: '#947ed4',
    500: '#5f4bc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bc0;
$custom-light: #947ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bc0",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 192
  },
  "hsl": {
    "h": 250.256,
    "s": 48.148,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49929,
    "c": 0.17537,
    "h": 286
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#5F4BC0
secondary
#C4CD9A
accent
#D850C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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