#5734AF#5734AF

#5734AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.184 H 289.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5734AF
RGBrgb(87, 52, 175)
HSLhsl(257, 54%, 45%)
HSVhsv(257, 70%, 69%)
CMYKcmyk(50.3%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.09, 45.34, -60.18)
CIE-LCHlch(33.09, 75.35, 306.99°)
OKLaboklab(44.3% 0.0623 -0.1727)
OKLCHoklch(44.3% 0.184 289.8)
XYZxyz(12.8941, 7.5768, 41.3322)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734AF #8CAF34
analogous
#344FAF #5734AF #9534AF
triadic
#5734AF #AF5734 #34AF57
tetradic
#5734AF #AF344F #8CAF34 #34AF95
square
#5734AF #AF344F #8CAF34 #34AF95
split-complementary
#5734AF #AF9534 #4FAF34
monochromatic
#281851 #402680 #5734AF #7654CC #9C83DA

Accessibility & contrast

On white

8.35
#5734AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5734AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734AF
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734AF#FFFFFF#000000##FFFFFF
##5734AF1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#39546E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5734af;
/* rgb */ color: rgb(87, 52, 175);
/* oklch */ color: oklch(44.3% 0.184 289.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ec8',
    500: '#5734af',
    950: '#000000',
  },
}
SCSS
$custom: #5734af;
$custom-light: #8f6ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#5734af",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 257.073,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44304,
    "c": 0.18359,
    "h": 289.8
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#5734AF
secondary
#AFC47B
accent
#DE4AB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5734AF

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

Preview Lab → · Contrast checker → · Palette generator →

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