#5235C5#5235C5

#5235C5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.209 H 283.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5235C5
RGBrgb(82, 53, 197)
HSLhsl(252, 58%, 49%)
HSVhsv(252, 73%, 77%)
CMYKcmyk(58.4%, 73.1%, 0%, 22.7%)
CIE-LABlab(34.74, 50.45, -70.48)
CIE-LCHlch(34.74, 86.67, 305.59°)
OKLaboklab(45.96% 0.0497 -0.203)
OKLCHoklch(45.96% 0.209 283.7)
XYZxyz(14.8277, 8.3703, 53.6468)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C5 #A8C535
analogous
#3560C5 #5235C5 #9A35C5
triadic
#5235C5 #C55235 #35C552
tetradic
#5235C5 #C53560 #A8C535 #35C59A
square
#5235C5 #C53560 #A8C535 #35C59A
split-complementary
#5235C5 #C59A35 #60C535
monochromatic
#2A1B65 #3E2895 #5235C5 #7962D5 #A393E2

Accessibility & contrast

On white

7.85
#5235C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5235C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C5
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C5#FFFFFF#000000##FFFFFF
##5235C51.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#0B5D7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5235c5;
/* rgb */ color: rgb(82, 53, 197);
/* oklch */ color: oklch(46.0% 0.209 283.7);
Tailwind
colors: {
  custom: {
    50: '#8f6fd8',
    500: '#5235c5',
    950: '#000000',
  },
}
SCSS
$custom: #5235c5;
$custom-light: #8f6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c5",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 252.083,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.20903,
    "h": 283.7
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#5235C5
secondary
#BFCD89
accent
#E147C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5235C5

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

Preview Lab → · Contrast checker → · Palette generator →

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