#5734CF#5734CF

#5734CF is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.221 H 284.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5734CF
RGBrgb(87, 52, 207)
HSLhsl(254, 62%, 51%)
HSVhsv(254, 75%, 81%)
CMYKcmyk(58%, 74.9%, 0%, 18.8%)
CIE-LABlab(35.96, 54.50, -74.28)
CIE-LCHlch(35.96, 92.13, 306.27°)
OKLaboklab(47.21% 0.0552 -0.214)
OKLCHoklch(47.21% 0.221 284.5)
XYZxyz(16.4175, 8.9862, 59.8888)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734CF #ACCF34
analogous
#345ECF #5734CF #A434CF
triadic
#5734CF #CF5734 #34CF57
tetradic
#5734CF #CF345E #ACCF34 #34CFA4
square
#5734CF #CF345E #ACCF34 #34CFA4
split-complementary
#5734CF #CFA434 #5ECF34
monochromatic
#2D1A6E #4126A0 #5734CF #8065DB #A997E6

Accessibility & contrast

On white

7.51
#5734CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5734CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734CF
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734CF#FFFFFF#000000##FFFFFF
##5734CF1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#11607F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5734cf;
/* rgb */ color: rgb(87, 52, 207);
/* oklch */ color: oklch(47.2% 0.221 284.5);
Tailwind
colors: {
  custom: {
    50: '#9470df',
    500: '#5734cf',
    950: '#000000',
  },
}
SCSS
$custom: #5734cf;
$custom-light: #9470df;
$custom-dark: #000000;
JSON
{
  "hex": "#5734cf",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 253.548,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47214,
    "c": 0.221,
    "h": 284.5
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#5734CF
secondary
#C2D28D
accent
#E543C0
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5734CF

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

Preview Lab → · Contrast checker → · Palette generator →

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