#5235C8#5235C8

#5235C8 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.213 H 283.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5235C8
RGBrgb(82, 53, 200)
HSLhsl(252, 58%, 50%)
HSVhsv(252, 74%, 78%)
CMYKcmyk(59%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.02, 51.33, -71.77)
CIE-LCHlch(35.02, 88.23, 305.57°)
OKLaboklab(46.25% 0.049 -0.2068)
OKLCHoklch(46.25% 0.213 283.3)
XYZxyz(15.1749, 8.5092, 55.4752)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C8 #ABC835
analogous
#3561C8 #5235C8 #9C35C8
triadic
#5235C8 #C85235 #35C852
tetradic
#5235C8 #C83561 #ABC835 #35C89C
square
#5235C8 #C83561 #ABC835 #35C89C
split-complementary
#5235C8 #C89C35 #61C835
monochromatic
#2A1B67 #3E2898 #5235C8 #7B64D6 #A495E3

Accessibility & contrast

On white

7.77
#5235C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5235C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C8
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C8#FFFFFF#000000##FFFFFF
##5235C81.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)
#0057CC
Deuteranopia (green-blind)
#004DC5
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5235c8;
/* rgb */ color: rgb(82, 53, 200);
/* oklch */ color: oklch(46.2% 0.213 283.3);
Tailwind
colors: {
  custom: {
    50: '#9070da',
    500: '#5235c8',
    950: '#000000',
  },
}
SCSS
$custom: #5235c8;
$custom-light: #9070da;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c8",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 251.837,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46245,
    "c": 0.21255,
    "h": 283.3
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#5235C8
secondary
#C1CE8B
accent
#E146C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5235C8

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

Preview Lab → · Contrast checker → · Palette generator →

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