#5730B2#5730B2

#5730B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.192 H 289.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5730B2
RGBrgb(87, 48, 178)
HSLhsl(258, 58%, 44%)
HSVhsv(258, 73%, 70%)
CMYKcmyk(51.1%, 73%, 0%, 30.2%)
CIE-LABlab(32.60, 48.27, -62.77)
CIE-LCHlch(32.60, 79.18, 307.56°)
OKLaboklab(44.04% 0.0652 -0.1803)
OKLCHoklch(44.04% 0.192 289.9)
XYZxyz(13.0210, 7.3539, 42.8442)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5730B2 #8BB230
analogous
#304AB2 #5730B2 #9830B2
triadic
#5730B2 #B25730 #30B257
tetradic
#5730B2 #B2304A #8BB230 #30B298
square
#5730B2 #B2304A #8BB230 #30B298
split-complementary
#5730B2 #B29830 #4AB230
monochromatic
#281652 #3F2382 #5730B2 #7650D0 #9C80DD

Accessibility & contrast

On white

8.50
#5730B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5730B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5730B2
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5730B2#FFFFFF#000000##FFFFFF
##5730B21.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#37536E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5730b2;
/* rgb */ color: rgb(87, 48, 178);
/* oklch */ color: oklch(44.0% 0.192 289.9);
Tailwind
colors: {
  custom: {
    50: '#8f6cca',
    500: '#5730b2',
    950: '#000000',
  },
}
SCSS
$custom: #5730b2;
$custom-light: #8f6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5730b2",
  "rgb": {
    "r": 87,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 258,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44039,
    "c": 0.1917,
    "h": 289.9
  },
  "luminance": 0.07354
}

Semantic roles & 50–950 ramp

primary
#5730B2
secondary
#AEC678
accent
#E147B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5730B2

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

Preview Lab → · Contrast checker → · Palette generator →

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