#5734C5#5734C5

#5734C5 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.210 H 286.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5734C5
RGBrgb(87, 52, 197)
HSLhsl(254, 58%, 49%)
HSVhsv(254, 74%, 77%)
CMYKcmyk(55.8%, 73.6%, 0%, 22.7%)
CIE-LABlab(35.03, 51.65, -69.99)
CIE-LCHlch(35.03, 86.98, 306.42°)
OKLaboklab(46.28% 0.0576 -0.2014)
OKLCHoklch(46.28% 0.21 286)
XYZxyz(15.2335, 8.5126, 53.6529)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734C5 #A2C534
analogous
#345AC5 #5734C5 #A034C5
triadic
#5734C5 #C55734 #34C557
tetradic
#5734C5 #C5345A #A2C534 #34C5A0
square
#5734C5 #C5345A #A2C534 #34C5A0
split-complementary
#5734C5 #C5A034 #5AC534
monochromatic
#2C1A64 #422795 #5734C5 #7D61D5 #A591E2

Accessibility & contrast

On white

7.77
#5734C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5734C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734C5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734C5#FFFFFF#000000##FFFFFF
##5734C51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#235C7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5734c5;
/* rgb */ color: rgb(87, 52, 197);
/* oklch */ color: oklch(46.3% 0.210 286.0);
Tailwind
colors: {
  custom: {
    50: '#926fd8',
    500: '#5734c5',
    950: '#000000',
  },
}
SCSS
$custom: #5734c5;
$custom-light: #926fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5734c5",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 254.483,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46278,
    "c": 0.20952,
    "h": 286
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#5734C5
secondary
#BCCD88
accent
#E146BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5734C5

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

Preview Lab → · Contrast checker → · Palette generator →

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