#5727A8#5727A8

#5727A8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.190 H 293.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5727A8
RGBrgb(87, 39, 168)
HSLhsl(262, 62%, 41%)
HSVhsv(262, 77%, 66%)
CMYKcmyk(48.2%, 76.8%, 0%, 34.1%)
CIE-LABlab(30.17, 49.88, -60.76)
CIE-LCHlch(30.17, 78.62, 309.38°)
OKLaboklab(42.05% 0.0753 -0.1743)
OKLCHoklch(42.05% 0.19 293.4)
XYZxyz(11.7219, 6.3040, 37.6374)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727A8 #78A827
analogous
#2737A8 #5727A8 #9827A8
triadic
#5727A8 #A85727 #27A857
tetradic
#5727A8 #A82737 #78A827 #27A898
square
#5727A8 #A82737 #78A827 #27A898
split-complementary
#5727A8 #A89827 #37A827
monochromatic
#241045 #3D1B76 #5727A8 #733BD1 #966CDD

Accessibility & contrast

On white

9.29
#5727A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5727A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5727A8
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5727A8#FFFFFF#000000##FFFFFF
##5727A81.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#3E4A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5727a8;
/* rgb */ color: rgb(87, 39, 168);
/* oklch */ color: oklch(42.1% 0.190 293.4);
Tailwind
colors: {
  custom: {
    50: '#8f67c3',
    500: '#5727a8',
    950: '#000000',
  },
}
SCSS
$custom: #5727a8;
$custom-light: #8f67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5727a8",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 262.326,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.18991,
    "h": 293.4
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#5727A8
secondary
#A1C367
accent
#E542A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5727A8

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

Preview Lab → · Contrast checker → · Palette generator →

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