#5235C0#5235C0

#5235C0 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.203 H 284.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5235C0
RGBrgb(82, 53, 192)
HSLhsl(253, 57%, 48%)
HSVhsv(253, 72%, 75%)
CMYKcmyk(57.3%, 72.4%, 0%, 24.7%)
CIE-LABlab(34.28, 48.97, -68.30)
CIE-LCHlch(34.28, 84.04, 305.64°)
OKLaboklab(45.5% 0.0508 -0.1967)
OKLCHoklch(45.5% 0.203 284.5)
XYZxyz(14.2643, 8.1449, 50.6794)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C0 #A3C035
analogous
#355DC0 #5235C0 #9735C0
triadic
#5235C0 #C05235 #35C052
tetradic
#5235C0 #C0355D #A3C035 #35C097
square
#5235C0 #C0355D #A3C035 #35C097
split-complementary
#5235C0 #C09735 #5DC035
monochromatic
#291B60 #3E2890 #5235C0 #775FD3 #A08FE0

Accessibility & contrast

On white

7.99
#5235C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5235C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C0
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C0#FFFFFF#000000##FFFFFF
##5235C01.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C4
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#185B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5235c0;
/* rgb */ color: rgb(82, 53, 192);
/* oklch */ color: oklch(45.5% 0.203 284.5);
Tailwind
colors: {
  custom: {
    50: '#8e6fd4',
    500: '#5235c0',
    950: '#000000',
  },
}
SCSS
$custom: #5235c0;
$custom-light: #8e6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c0",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 192
  },
  "hsl": {
    "h": 252.518,
    "s": 56.735,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45498,
    "c": 0.20312,
    "h": 284.5
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#5235C0
secondary
#BCCB86
accent
#E048C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5235C0

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

Preview Lab → · Contrast checker → · Palette generator →

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