#5F3CA8#5F3CA8

#5F3CA8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.7% C 0.165 H 293.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA8
RGBrgb(95, 60, 168)
HSLhsl(259, 47%, 45%)
HSVhsv(259, 64%, 66%)
CMYKcmyk(43.5%, 64.3%, 0%, 34.1%)
CIE-LABlab(34.99, 40.47, -52.87)
CIE-LCHlch(34.99, 66.58, 307.43°)
OKLaboklab(45.69% 0.0665 -0.1509)
OKLCHoklch(45.69% 0.165 293.8)
XYZxyz(13.4011, 8.4914, 37.9711)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA8 #85A83C
analogous
#3C4FA8 #5F3CA8 #953CA8
triadic
#5F3CA8 #A85F3C #3CA85F
tetradic
#5F3CA8 #A83C4F #85A83C #3CA895
square
#5F3CA8 #A83C4F #85A83C #3CA895
split-complementary
#5F3CA8 #A8953C #4FA83C
monochromatic
#2C1C4E #452C7B #5F3CA8 #7E5CC5 #A289D5

Accessibility & contrast

On white

7.78
#5F3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F3CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA8
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA8#FFFFFF#000000##FFFFFF
##5F3CA81.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#4B556C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3ca8;
/* rgb */ color: rgb(95, 60, 168);
/* oklch */ color: oklch(45.7% 0.165 293.8);
Tailwind
colors: {
  custom: {
    50: '#9274c3',
    500: '#5f3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca8;
$custom-light: #9274c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca8",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 259.444,
    "s": 47.368,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45694,
    "c": 0.16493,
    "h": 293.8
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#5F3CA8
secondary
#ABBF80
accent
#D751AC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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