#5235C2#5235C2

#5235C2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.205 H 284.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5235C2
RGBrgb(82, 53, 194)
HSLhsl(252, 57%, 48%)
HSVhsv(252, 73%, 76%)
CMYKcmyk(57.7%, 72.7%, 0%, 23.9%)
CIE-LABlab(34.47, 49.56, -69.17)
CIE-LCHlch(34.47, 85.10, 305.62°)
OKLaboklab(45.68% 0.0504 -0.1992)
OKLCHoklch(45.68% 0.205 284.2)
XYZxyz(14.4874, 8.2342, 51.8544)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C2 #A5C235
analogous
#355FC2 #5235C2 #9835C2
triadic
#5235C2 #C25235 #35C252
tetradic
#5235C2 #C2355F #A5C235 #35C298
square
#5235C2 #C2355F #A5C235 #35C298
split-complementary
#5235C2 #C29835 #5FC235
monochromatic
#291B62 #3E2892 #5235C2 #7860D4 #A191E1

Accessibility & contrast

On white

7.93
#5235C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5235C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C2#FFFFFF#000000##FFFFFF
##5235C21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#145C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5235c2;
/* rgb */ color: rgb(82, 53, 194);
/* oklch */ color: oklch(45.7% 0.205 284.2);
Tailwind
colors: {
  custom: {
    50: '#8f6fd6',
    500: '#5235c2',
    950: '#000000',
  },
}
SCSS
$custom: #5235c2;
$custom-light: #8f6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c2",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 252.34,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45683,
    "c": 0.20548,
    "h": 284.2
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#5235C2
secondary
#BECC87
accent
#E047C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5235C2

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

Preview Lab → · Contrast checker → · Palette generator →

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