#5730A2#5730A2

#5730A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.173 H 293.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5730A2
RGBrgb(87, 48, 162)
HSLhsl(261, 54%, 41%)
HSVhsv(261, 70%, 64%)
CMYKcmyk(46.3%, 70.4%, 0%, 36.5%)
CIE-LABlab(31.23, 43.79, -55.41)
CIE-LCHlch(31.23, 70.62, 308.32°)
OKLaboklab(42.64% 0.0685 -0.1587)
OKLCHoklch(42.64% 0.173 293.4)
XYZxyz(11.5072, 6.7484, 34.8717)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5730A2 #7BA230
analogous
#3042A2 #5730A2 #9030A2
triadic
#5730A2 #A25730 #30A257
tetradic
#5730A2 #A23042 #7BA230 #30A290
square
#5730A2 #A23042 #7BA230 #30A290
split-complementary
#5730A2 #A29030 #42A230
monochromatic
#241444 #3E2273 #5730A2 #7347C8 #9776D6

Accessibility & contrast

On white

8.94
#5730A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5730A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5730A2
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5730A2#FFFFFF#000000##FFFFFF
##5730A21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#414D65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5730a2;
/* rgb */ color: rgb(87, 48, 162);
/* oklch */ color: oklch(42.6% 0.173 293.4);
Tailwind
colors: {
  custom: {
    50: '#8d6bbe',
    500: '#5730a2',
    950: '#000000',
  },
}
SCSS
$custom: #5730a2;
$custom-light: #8d6bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5730a2",
  "rgb": {
    "r": 87,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 260.526,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4264,
    "c": 0.17283,
    "h": 293.4
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#5730A2
secondary
#A3BE6F
accent
#DE4AAB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5730A2

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

Preview Lab → · Contrast checker → · Palette generator →

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