#5F2CA8#5F2CA8

#5F2CA8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.185 H 296.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA8
RGBrgb(95, 44, 168)
HSLhsl(265, 58%, 42%)
HSVhsv(265, 74%, 66%)
CMYKcmyk(43.5%, 73.8%, 0%, 34.1%)
CIE-LABlab(31.95, 48.86, -57.82)
CIE-LCHlch(31.95, 75.70, 310.20°)
OKLaboklab(43.52% 0.083 -0.1654)
OKLCHoklch(43.52% 0.185 296.6)
XYZxyz(12.6860, 7.0611, 37.7327)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA8 #75A82C
analogous
#2C37A8 #5F2CA8 #9D2CA8
triadic
#5F2CA8 #A85F2C #2CA85F
tetradic
#5F2CA8 #A82C37 #75A82C #2CA89D
square
#5F2CA8 #A82C37 #75A82C #2CA89D
split-complementary
#5F2CA8 #A89D2C #37A82C
monochromatic
#281347 #441F78 #5F2CA8 #7C43CE #9E74DB

Accessibility & contrast

On white

8.71
#5F2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA8
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA8#FFFFFF#000000##FFFFFF
##5F2CA81.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#4C4C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ca8;
/* rgb */ color: rgb(95, 44, 168);
/* oklch */ color: oklch(43.5% 0.185 296.6);
Tailwind
colors: {
  custom: {
    50: '#936ac3',
    500: '#5f2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca8;
$custom-light: #936ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca8",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 264.677,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43518,
    "c": 0.18507,
    "h": 296.6
  },
  "luminance": 0.07061
}

Semantic roles & 50–950 ramp

primary
#5F2CA8
secondary
#9FC26E
accent
#E246A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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