#5234CA#5234CA

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

Color values

HEX#5234CA
RGBrgb(82, 52, 202)
HSLhsl(252, 59%, 50%)
HSVhsv(252, 74%, 79%)
CMYKcmyk(59.4%, 74.3%, 0%, 20.8%)
CIE-LABlab(35.03, 52.42, -72.92)
CIE-LCHlch(35.03, 89.81, 305.71°)
OKLaboklab(46.31% 0.0492 -0.2102)
OKLCHoklch(46.31% 0.216 283.2)
XYZxyz(15.3650, 8.5131, 56.6992)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5234CA #ACCA34
analogous
#3461CA #5234CA #9D34CA
triadic
#5234CA #CA5234 #34CA52
tetradic
#5234CA #CA3461 #ACCA34 #34CA9D
square
#5234CA #CA3461 #ACCA34 #34CA9D
split-complementary
#5234CA #CA9D34 #61CA34
monochromatic
#2A1B69 #3E2799 #5234CA #7B64D7 #A595E4

Accessibility & contrast

On white

7.77
#5234CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5234CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5234CA
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5234CA#FFFFFF#000000##FFFFFF
##5234CA1.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)
#0057CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5234ca;
/* rgb */ color: rgb(82, 52, 202);
/* oklch */ color: oklch(46.3% 0.216 283.2);
Tailwind
colors: {
  custom: {
    50: '#906fdb',
    500: '#5234ca',
    950: '#000000',
  },
}
SCSS
$custom: #5234ca;
$custom-light: #906fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5234ca",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 252,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46307,
    "c": 0.21587,
    "h": 283.2
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#5234CA
secondary
#C1CF8B
accent
#E246C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5234CA

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

Preview Lab → · Contrast checker → · Palette generator →

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