#5734B2#5734B2

#5734B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.187 H 289.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#5734B2
RGBrgb(87, 52, 178)
HSLhsl(257, 55%, 45%)
HSVhsv(257, 71%, 70%)
CMYKcmyk(51.1%, 70.8%, 0%, 30.2%)
CIE-LABlab(33.34, 46.20, -61.55)
CIE-LCHlch(33.34, 76.96, 306.89°)
OKLaboklab(44.57% 0.0617 -0.1767)
OKLCHoklch(44.57% 0.187 289.3)
XYZxyz(13.1920, 7.6960, 42.9012)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734B2 #8FB234
analogous
#3450B2 #5734B2 #9634B2
triadic
#5734B2 #B25734 #34B257
tetradic
#5734B2 #B23450 #8FB234 #34B296
square
#5734B2 #B23450 #8FB234 #34B296
split-complementary
#5734B2 #B29634 #50B234
monochromatic
#291853 #402683 #5734B2 #7756CE #9D85DB

Accessibility & contrast

On white

8.27
#5734B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5734B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734B2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734B2#FFFFFF#000000##FFFFFF
##5734B21.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#36556F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5734b2;
/* rgb */ color: rgb(87, 52, 178);
/* oklch */ color: oklch(44.6% 0.187 289.3);
Tailwind
colors: {
  custom: {
    50: '#8f6eca',
    500: '#5734b2',
    950: '#000000',
  },
}
SCSS
$custom: #5734b2;
$custom-light: #8f6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5734b2",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 256.667,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44566,
    "c": 0.18718,
    "h": 289.3
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#5734B2
secondary
#B1C57D
accent
#DE4AB5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5734B2

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

Preview Lab → · Contrast checker → · Palette generator →

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