#5730AC#5730AC

#5730AC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.185 H 291.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5730AC
RGBrgb(87, 48, 172)
HSLhsl(259, 56%, 43%)
HSVhsv(259, 72%, 67%)
CMYKcmyk(49.4%, 72.1%, 0%, 32.5%)
CIE-LABlab(32.07, 46.59, -60.04)
CIE-LCHlch(32.07, 76.00, 307.81°)
OKLaboklab(43.51% 0.0666 -0.1723)
OKLCHoklch(43.51% 0.185 291.1)
XYZxyz(12.4317, 7.1182, 39.7407)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5730AC #85AC30
analogous
#3047AC #5730AC #9530AC
triadic
#5730AC #AC5730 #30AC57
tetradic
#5730AC #AC3047 #85AC30 #30AC95
square
#5730AC #AC3047 #85AC30 #30AC95
split-complementary
#5730AC #AC9530 #47AC30
monochromatic
#27154C #3F237C #5730AC #754CCD #9A7CDA

Accessibility & contrast

On white

8.66
#5730AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5730AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5730AC
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5730AC#FFFFFF#000000##FFFFFF
##5730AC1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#3B506B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5730ac;
/* rgb */ color: rgb(87, 48, 172);
/* oklch */ color: oklch(43.5% 0.185 291.1);
Tailwind
colors: {
  custom: {
    50: '#8f6cc6',
    500: '#5730ac',
    950: '#000000',
  },
}
SCSS
$custom: #5730ac;
$custom-light: #8f6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5730ac",
  "rgb": {
    "r": 87,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 258.871,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.18468,
    "h": 291.1
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#5730AC
secondary
#AAC375
accent
#E048B0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5730AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5730AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva