#5F27B1#5F27B1

#5F27B1 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.200 H 295.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5F27B1
RGBrgb(95, 39, 177)
HSLhsl(264, 64%, 42%)
HSVhsv(264, 78%, 69%)
CMYKcmyk(46.3%, 78%, 0%, 30.6%)
CIE-LABlab(31.94, 53.46, -63.22)
CIE-LCHlch(31.94, 82.79, 310.22°)
OKLaboklab(43.76% 0.0849 -0.1812)
OKLCHoklch(43.76% 0.2 295.1)
XYZxyz(13.3785, 7.0579, 42.2439)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F27B1 #79B127
analogous
#2734B1 #5F27B1 #A427B1
triadic
#5F27B1 #B15F27 #27B15F
tetradic
#5F27B1 #B12734 #79B127 #27B1A4
square
#5F27B1 #B12734 #79B127 #27B1A4
split-complementary
#5F27B1 #B1A427 #34B127
monochromatic
#29114D #441C7F #5F27B1 #7D40D5 #9F72E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F27B1#FFFFFF#000000##FFFFFF
##5F27B11.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)
#004CB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#474D6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f27b1;
/* rgb */ color: rgb(95, 39, 177);
/* oklch */ color: oklch(43.8% 0.200 295.1);
Tailwind
colors: {
  custom: {
    50: '#9568c9',
    500: '#5f27b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f27b1;
$custom-light: #9568c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f27b1",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 264.348,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.20015,
    "h": 295.1
  },
  "luminance": 0.07058
}

Semantic roles & 50–950 ramp

primary
#5F27B1
secondary
#A2C76D
accent
#E741A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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