#5734EA#5734EA

#5734EA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.251 H 281.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5734EA
RGBrgb(87, 52, 234)
HSLhsl(252, 81%, 56%)
HSVhsv(252, 78%, 92%)
CMYKcmyk(62.8%, 77.8%, 0%, 8.2%)
CIE-LABlab(38.59, 62.13, -85.43)
CIE-LCHlch(38.59, 105.63, 306.02°)
OKLaboklab(49.84% 0.048 -0.2465)
OKLCHoklch(49.84% 0.251 281)
XYZxyz(20.0051, 10.4212, 78.7832)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734EA #C7EA34
analogous
#346CEA #5734EA #B234EA
triadic
#5734EA #EA5734 #34EA57
tetradic
#5734EA #EA346C #C7EA34 #34EAB2
square
#5734EA #EA346C #C7EA34 #34EAB2
split-complementary
#5734EA #EAB234 #6CEA34
monochromatic
#290F94 #3815CC #5734EA #856BF0 #B3A3F5

Accessibility & contrast

On white

6.81
#5734EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5734EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5734EA
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734EA#FFFFFF#000000##FFFFFF
##5734EA1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061EF
Deuteranopia (green-blind)
#0054E7
Tritanopia (blue-blind)
#006B8F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5734ea;
/* rgb */ color: rgb(87, 52, 234);
/* oklch */ color: oklch(49.8% 0.251 281.0);
Tailwind
colors: {
  custom: {
    50: '#9871f2',
    500: '#5734ea',
    950: '#000000',
  },
}
SCSS
$custom: #5734ea;
$custom-light: #9871f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5734ea",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 234
  },
  "hsl": {
    "h": 251.538,
    "s": 81.25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.4984,
    "c": 0.25118,
    "h": 281
  },
  "luminance": 0.10423
}

Semantic roles & 50–950 ramp

primary
#5734EA
secondary
#D4E297
accent
#F830D1
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5734EA

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

Preview Lab → · Contrast checker → · Palette generator →

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