#5235CC#5235CC

#5235CC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.217 H 282.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5235CC
RGBrgb(82, 53, 204)
HSLhsl(252, 60%, 50%)
HSVhsv(252, 74%, 80%)
CMYKcmyk(59.8%, 74%, 0%, 20%)
CIE-LABlab(35.40, 52.50, -73.48)
CIE-LCHlch(35.40, 90.31, 305.54°)
OKLaboklab(46.62% 0.0481 -0.2118)
OKLCHoklch(46.62% 0.217 282.8)
XYZxyz(15.6485, 8.6986, 57.9694)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235CC #AFCC35
analogous
#3563CC #5235CC #9D35CC
triadic
#5235CC #CC5235 #35CC52
tetradic
#5235CC #CC3563 #AFCC35 #35CC9D
square
#5235CC #CC3563 #AFCC35 #35CC9D
split-complementary
#5235CC #CC9D35 #63CC35
monochromatic
#2B1B6B #3E279C #5235CC #7C66D8 #A697E5

Accessibility & contrast

On white

7.66
#5235CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5235CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235CC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235CC#FFFFFF#000000##FFFFFF
##5235CC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5235cc;
/* rgb */ color: rgb(82, 53, 204);
/* oklch */ color: oklch(46.6% 0.217 282.8);
Tailwind
colors: {
  custom: {
    50: '#9070dd',
    500: '#5235cc',
    950: '#000000',
  },
}
SCSS
$custom: #5235cc;
$custom-light: #9070dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5235cc",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 251.523,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.21721,
    "h": 282.8
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#5235CC
secondary
#C3D08D
accent
#E345C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5235CC

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

Preview Lab → · Contrast checker → · Palette generator →

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