#5F27AA#5F27AA

#5F27AA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.193 H 296.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5F27AA
RGBrgb(95, 39, 170)
HSLhsl(266, 63%, 41%)
HSVhsv(266, 77%, 67%)
CMYKcmyk(44.1%, 77.1%, 0%, 33.3%)
CIE-LABlab(31.31, 51.67, -60.05)
CIE-LCHlch(31.31, 79.22, 310.71°)
OKLaboklab(43.13% 0.0869 -0.1719)
OKLCHoklch(43.13% 0.193 296.8)
XYZxyz(12.6986, 6.7859, 38.6632)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F27AA #72AA27
analogous
#2730AA #5F27AA #A027AA
triadic
#5F27AA #AA5F27 #27AA5F
tetradic
#5F27AA #AA2730 #72AA27 #27AAA0
square
#5F27AA #AA2730 #72AA27 #27AAA0
split-complementary
#5F27AA #AAA027 #30AA27
monochromatic
#271046 #431C78 #5F27AA #7C3CD2 #9E6EDE

Accessibility & contrast

On white

8.91
#5F27AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F27AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F27AA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F27AA#FFFFFF#000000##FFFFFF
##5F27AA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#4B4A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f27aa;
/* rgb */ color: rgb(95, 39, 170);
/* oklch */ color: oklch(43.1% 0.193 296.8);
Tailwind
colors: {
  custom: {
    50: '#9468c4',
    500: '#5f27aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f27aa;
$custom-light: #9468c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f27aa",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 265.649,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43128,
    "c": 0.19265,
    "h": 296.8
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#5F27AA
secondary
#9DC469
accent
#E642A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F27AA

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

Preview Lab → · Contrast checker → · Palette generator →

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