#5235CA#5235CA

#5235CA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.215 H 283.1°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5235CA
RGBrgb(82, 53, 202)
HSLhsl(252, 58%, 50%)
HSVhsv(252, 74%, 79%)
CMYKcmyk(59.4%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.21, 51.91, -72.63)
CIE-LCHlch(35.21, 89.27, 305.56°)
OKLaboklab(46.43% 0.0485 -0.2093)
OKLCHoklch(46.43% 0.215 283.1)
XYZxyz(15.4101, 8.6033, 56.7142)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235CA #ADCA35
analogous
#3562CA #5235CA #9D35CA
triadic
#5235CA #CA5235 #35CA52
tetradic
#5235CA #CA3562 #ADCA35 #35CA9D
square
#5235CA #CA3562 #ADCA35 #35CA9D
split-complementary
#5235CA #CA9D35 #62CA35
monochromatic
#2B1C69 #3E289A #5235CA #7C65D7 #A596E3

Accessibility & contrast

On white

7.72
#5235CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5235CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235CA
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235CA#FFFFFF#000000##FFFFFF
##5235CA1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5235ca;
/* rgb */ color: rgb(82, 53, 202);
/* oklch */ color: oklch(46.4% 0.215 283.1);
Tailwind
colors: {
  custom: {
    50: '#9070db',
    500: '#5235ca',
    950: '#000000',
  },
}
SCSS
$custom: #5235ca;
$custom-light: #9070db;
$custom-dark: #000000;
JSON
{
  "hex": "#5235ca",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 251.678,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.21488,
    "h": 283.1
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5235CA

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

Preview Lab → · Contrast checker → · Palette generator →

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