#5734CA#5734CA

#5734CA is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.215 H 285.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5734CA
RGBrgb(87, 52, 202)
HSLhsl(254, 59%, 50%)
HSVhsv(254, 74%, 79%)
CMYKcmyk(56.9%, 74.3%, 0%, 20.8%)
CIE-LABlab(35.49, 53.08, -72.15)
CIE-LCHlch(35.49, 89.57, 306.34°)
OKLaboklab(46.74% 0.0564 -0.2078)
OKLCHoklch(46.74% 0.215 285.2)
XYZxyz(15.8159, 8.7455, 56.7203)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734CA #A7CA34
analogous
#345CCA #5734CA #A234CA
triadic
#5734CA #CA5734 #34CA57
tetradic
#5734CA #CA345C #A7CA34 #34CAA2
square
#5734CA #CA345C #A7CA34 #34CAA2
split-complementary
#5734CA #CAA234 #5CCA34
monochromatic
#2D1B69 #422799 #5734CA #7F64D7 #A795E4

Accessibility & contrast

On white

7.64
#5734CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5734CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734CA
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734CA#FFFFFF#000000##FFFFFF
##5734CA1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#1C5E7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5734ca;
/* rgb */ color: rgb(87, 52, 202);
/* oklch */ color: oklch(46.7% 0.215 285.2);
Tailwind
colors: {
  custom: {
    50: '#936fdb',
    500: '#5734ca',
    950: '#000000',
  },
}
SCSS
$custom: #5734ca;
$custom-light: #936fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5734ca",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 254,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46743,
    "c": 0.21529,
    "h": 285.2
  },
  "luminance": 0.08746
}

Semantic roles & 50–950 ramp

primary
#5734CA
secondary
#BFCF8B
accent
#E246BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5734CA

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

Preview Lab → · Contrast checker → · Palette generator →

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