#5734B3#5734B3

#5734B3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.188 H 289.1°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5734B3
RGBrgb(87, 52, 179)
HSLhsl(257, 55%, 45%)
HSVhsv(257, 71%, 70%)
CMYKcmyk(51.4%, 70.9%, 0%, 29.8%)
CIE-LABlab(33.43, 46.49, -62.00)
CIE-LCHlch(33.43, 77.49, 306.86°)
OKLaboklab(44.65% 0.0615 -0.1781)
OKLCHoklch(44.65% 0.188 289.1)
XYZxyz(13.2928, 7.7363, 43.4319)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734B3 #90B334
analogous
#3451B3 #5734B3 #9634B3
triadic
#5734B3 #B35734 #34B357
tetradic
#5734B3 #B33451 #90B334 #34B396
square
#5734B3 #B33451 #90B334 #34B396
split-complementary
#5734B3 #B39634 #51B334
monochromatic
#291854 #402684 #5734B3 #7756CE #9D86DC

Accessibility & contrast

On white

8.24
#5734B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5734B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734B3
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734B3#FFFFFF#000000##FFFFFF
##5734B31.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#365570
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5734b3;
/* rgb */ color: rgb(87, 52, 179);
/* oklch */ color: oklch(44.7% 0.188 289.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ecb',
    500: '#5734b3',
    950: '#000000',
  },
}
SCSS
$custom: #5734b3;
$custom-light: #8f6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5734b3",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 256.535,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.18838,
    "h": 289.1
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

primary
#5734B3
secondary
#B2C57D
accent
#DE49B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5734B3

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

Preview Lab → · Contrast checker → · Palette generator →

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