#5235C3#5235C3

#5235C3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.207 H 284.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5235C3
RGBrgb(82, 53, 195)
HSLhsl(252, 57%, 49%)
HSVhsv(252, 73%, 76%)
CMYKcmyk(57.9%, 72.8%, 0%, 23.5%)
CIE-LABlab(34.56, 49.86, -69.61)
CIE-LCHlch(34.56, 85.62, 305.61°)
OKLaboklab(45.78% 0.0501 -0.2005)
OKLCHoklch(45.78% 0.207 284)
XYZxyz(14.6001, 8.2793, 52.4479)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C3 #A6C335
analogous
#355FC3 #5235C3 #9935C3
triadic
#5235C3 #C35235 #35C352
tetradic
#5235C3 #C3355F #A6C335 #35C399
square
#5235C3 #C3355F #A6C335 #35C399
split-complementary
#5235C3 #C39935 #5FC335
monochromatic
#2A1B63 #3E2893 #5235C3 #7961D4 #A291E1

Accessibility & contrast

On white

7.91
#5235C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5235C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C3#FFFFFF#000000##FFFFFF
##5235C31.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C7
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#115C79
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5235c3;
/* rgb */ color: rgb(82, 53, 195);
/* oklch */ color: oklch(45.8% 0.207 284.0);
Tailwind
colors: {
  custom: {
    50: '#8f6fd6',
    500: '#5235c3',
    950: '#000000',
  },
}
SCSS
$custom: #5235c3;
$custom-light: #8f6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c3",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 195
  },
  "hsl": {
    "h": 252.254,
    "s": 57.258,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.20667,
    "h": 284
  },
  "luminance": 0.0828
}

Semantic roles & 50–950 ramp

primary
#5235C3
secondary
#BECC88
accent
#E147C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5235C3

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

Preview Lab → · Contrast checker → · Palette generator →

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