#5727B1#5727B1

#5727B1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.200 H 291.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5727B1
RGBrgb(87, 39, 177)
HSLhsl(261, 64%, 42%)
HSVhsv(261, 78%, 69%)
CMYKcmyk(50.8%, 78%, 0%, 30.6%)
CIE-LABlab(31.00, 52.29, -64.79)
CIE-LCHlch(31.00, 83.26, 308.91°)
OKLaboklab(42.89% 0.0727 -0.1861)
OKLCHoklch(42.89% 0.2 291.3)
XYZxyz(12.5896, 6.6511, 42.2069)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727B1 #81B127
analogous
#273CB1 #5727B1 #9C27B1
triadic
#5727B1 #B15727 #27B157
tetradic
#5727B1 #B1273C #81B127 #27B19C
square
#5727B1 #B1273C #81B127 #27B19C
split-complementary
#5727B1 #B19C27 #3CB127
monochromatic
#26114D #3E1C7F #5727B1 #7440D5 #9972E0

Accessibility & contrast

On white

9.01
#5727B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5727B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5727B1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5727B1#FFFFFF#000000##FFFFFF
##5727B11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#384E6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5727b1;
/* rgb */ color: rgb(87, 39, 177);
/* oklch */ color: oklch(42.9% 0.200 291.3);
Tailwind
colors: {
  custom: {
    50: '#9067c9',
    500: '#5727b1',
    950: '#000000',
  },
}
SCSS
$custom: #5727b1;
$custom-light: #9067c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5727b1",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 260.87,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42887,
    "c": 0.19985,
    "h": 291.3
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#5727B1
secondary
#A8C76D
accent
#E741AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5727B1

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

Preview Lab → · Contrast checker → · Palette generator →

#5727B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva