#5235C4#5235C4

#5235C4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.208 H 283.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5235C4
RGBrgb(82, 53, 196)
HSLhsl(252, 57%, 49%)
HSVhsv(252, 73%, 77%)
CMYKcmyk(58.2%, 73%, 0%, 23.1%)
CIE-LABlab(34.65, 50.15, -70.04)
CIE-LCHlch(34.65, 86.15, 305.60°)
OKLaboklab(45.87% 0.0499 -0.2018)
OKLCHoklch(45.87% 0.208 283.9)
XYZxyz(14.7135, 8.3246, 53.0453)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C4 #A7C435
analogous
#3560C4 #5235C4 #9A35C4
triadic
#5235C4 #C45235 #35C452
tetradic
#5235C4 #C43560 #A7C435 #35C49A
square
#5235C4 #C43560 #A7C435 #35C49A
split-complementary
#5235C4 #C49A35 #60C435
monochromatic
#2A1B64 #3E2894 #5235C4 #7962D4 #A292E1

Accessibility & contrast

On white

7.88
#5235C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5235C4
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C4#FFFFFF#000000##FFFFFF
##5235C41.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#0E5C79
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5235c4;
/* rgb */ color: rgb(82, 53, 196);
/* oklch */ color: oklch(45.9% 0.208 283.9);
Tailwind
colors: {
  custom: {
    50: '#8f6fd7',
    500: '#5235c4',
    950: '#000000',
  },
}
SCSS
$custom: #5235c4;
$custom-light: #8f6fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c4",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 196
  },
  "hsl": {
    "h": 252.168,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.20785,
    "h": 283.9
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#5235C4
secondary
#BFCC88
accent
#E147C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5235C4

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

Preview Lab → · Contrast checker → · Palette generator →

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