#5235DC#5235DC

#5235DC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.236 H 280.8°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5235DC
RGBrgb(82, 53, 220)
HSLhsl(250, 70%, 54%)
HSVhsv(250, 76%, 86%)
CMYKcmyk(62.7%, 75.9%, 0%, 13.7%)
CIE-LABlab(36.94, 57.16, -80.18)
CIE-LCHlch(36.94, 98.47, 305.48°)
OKLaboklab(48.17% 0.0442 -0.2314)
OKLCHoklch(48.17% 0.236 280.8)
XYZxyz(17.6670, 9.5060, 68.6001)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235DC #BFDC35
analogous
#356BDC #5235DC #A535DC
triadic
#5235DC #DC5235 #35DC52
tetradic
#5235DC #DC356B #BFDC35 #35DCA5
square
#5235DC #DC356B #BFDC35 #35DCA5
split-complementary
#5235DC #DCA535 #6BDC35
monochromatic
#291680 #391FB5 #5235DC #7F69E5 #AB9DEE

Accessibility & contrast

On white

7.24
#5235DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5235DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235DC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235DC#FFFFFF#000000##FFFFFF
##5235DC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE1
Deuteranopia (green-blind)
#0051D9
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5235dc;
/* rgb */ color: rgb(82, 53, 220);
/* oklch */ color: oklch(48.2% 0.236 280.8);
Tailwind
colors: {
  custom: {
    50: '#9371e8',
    500: '#5235dc',
    950: '#000000',
  },
}
SCSS
$custom: #5235dc;
$custom-light: #9371e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5235dc",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 220
  },
  "hsl": {
    "h": 250.419,
    "s": 70.464,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48172,
    "c": 0.23554,
    "h": 280.8
  },
  "luminance": 0.09507
}

Semantic roles & 50–950 ramp

primary
#5235DC
secondary
#CEDA93
accent
#ED3BCE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5235DC

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

Preview Lab → · Contrast checker → · Palette generator →

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