#5F27A6#5F27A6

#5F27A6 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.188 H 297.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5F27A6
RGBrgb(95, 39, 166)
HSLhsl(266, 62%, 40%)
HSVhsv(266, 77%, 65%)
CMYKcmyk(42.8%, 76.5%, 0%, 34.9%)
CIE-LABlab(30.97, 50.65, -58.21)
CIE-LCHlch(30.97, 77.16, 311.02°)
OKLaboklab(42.78% 0.0879 -0.1666)
OKLCHoklch(42.78% 0.188 297.8)
XYZxyz(12.3260, 6.6369, 36.7006)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F27A6 #6EA627
analogous
#272EA6 #5F27A6 #9F27A6
triadic
#5F27A6 #A65F27 #27A65F
tetradic
#5F27A6 #A6272E #6EA627 #27A69F
square
#5F27A6 #A6272E #6EA627 #27A69F
split-complementary
#5F27A6 #A69F27 #2EA627
monochromatic
#261043 #431B74 #5F27A6 #7C3AD1 #9D6BDC

Accessibility & contrast

On white

9.02
#5F27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F27A6
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F27A6#FFFFFF#000000##FFFFFF
##5F27A61.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#4D4965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f27a6;
/* rgb */ color: rgb(95, 39, 166);
/* oklch */ color: oklch(42.8% 0.188 297.8);
Tailwind
colors: {
  custom: {
    50: '#9367c1',
    500: '#5f27a6',
    950: '#000000',
  },
}
SCSS
$custom: #5f27a6;
$custom-light: #9367c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f27a6",
  "rgb": {
    "r": 95,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 266.457,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42776,
    "c": 0.18835,
    "h": 297.8
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#5F27A6
secondary
#9AC366
accent
#E5439D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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