#5734C2#5734C2

#5734C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.206 H 286.4°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5734C2
RGBrgb(87, 52, 194)
HSLhsl(255, 58%, 48%)
HSVhsv(255, 73%, 76%)
CMYKcmyk(55.2%, 73.2%, 0%, 23.9%)
CIE-LABlab(34.75, 50.79, -68.68)
CIE-LCHlch(34.75, 85.42, 306.48°)
OKLaboklab(46% 0.0583 -0.1976)
OKLCHoklch(46% 0.206 286.4)
XYZxyz(14.8932, 8.3764, 51.8605)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734C2 #9FC234
analogous
#3458C2 #5734C2 #9E34C2
triadic
#5734C2 #C25734 #34C257
tetradic
#5734C2 #C23458 #9FC234 #34C29E
square
#5734C2 #C23458 #9FC234 #34C29E
split-complementary
#5734C2 #C29E34 #58C234
monochromatic
#2C1A61 #412792 #5734C2 #7C5FD4 #A38FE1

Accessibility & contrast

On white

7.85
#5734C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5734C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734C2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734C2#FFFFFF#000000##FFFFFF
##5734C21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#275B78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5734c2;
/* rgb */ color: rgb(87, 52, 194);
/* oklch */ color: oklch(46.0% 0.206 286.4);
Tailwind
colors: {
  custom: {
    50: '#916fd6',
    500: '#5734c2',
    950: '#000000',
  },
}
SCSS
$custom: #5734c2;
$custom-light: #916fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5734c2",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 254.789,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46002,
    "c": 0.20604,
    "h": 286.4
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#5734C2
secondary
#BBCC86
accent
#E147BB
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5734C2

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

Preview Lab → · Contrast checker → · Palette generator →

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