#5727AF#5727AF

#5727AF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.198 H 291.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5727AF
RGBrgb(87, 39, 175)
HSLhsl(261, 64%, 42%)
HSVhsv(261, 78%, 69%)
CMYKcmyk(50.3%, 77.7%, 0%, 31.4%)
CIE-LABlab(30.81, 51.76, -63.91)
CIE-LCHlch(30.81, 82.24, 309.00°)
OKLaboklab(42.7% 0.0733 -0.1835)
OKLCHoklch(42.7% 0.198 291.8)
XYZxyz(12.3917, 6.5719, 41.1647)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5727AF #7FAF27
analogous
#273BAF #5727AF #9B27AF
triadic
#5727AF #AF5727 #27AF57
tetradic
#5727AF #AF273B #7FAF27 #27AF9B
square
#5727AF #AF273B #7FAF27 #27AF9B
split-complementary
#5727AF #AF9B27 #3BAF27
monochromatic
#25114B #3E1C7D #5727AF #743FD4 #9871DF

Accessibility & contrast

On white

9.07
#5727AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5727AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5727AF
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5727AF#FFFFFF#000000##FFFFFF
##5727AF1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#394D6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5727af;
/* rgb */ color: rgb(87, 39, 175);
/* oklch */ color: oklch(42.7% 0.198 291.8);
Tailwind
colors: {
  custom: {
    50: '#9067c8',
    500: '#5727af',
    950: '#000000',
  },
}
SCSS
$custom: #5727af;
$custom-light: #9067c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5727af",
  "rgb": {
    "r": 87,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 261.176,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42699,
    "c": 0.19765,
    "h": 291.8
  },
  "luminance": 0.06572
}

Semantic roles & 50–950 ramp

primary
#5727AF
secondary
#A6C66B
accent
#E741AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5727AF

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

Preview Lab → · Contrast checker → · Palette generator →

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