#5235C7#5235C7

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

Color values

HEX#5235C7
RGBrgb(82, 53, 199)
HSLhsl(252, 58%, 49%)
HSVhsv(252, 73%, 78%)
CMYKcmyk(58.8%, 73.4%, 0%, 22%)
CIE-LABlab(34.93, 51.03, -71.34)
CIE-LCHlch(34.93, 87.71, 305.58°)
OKLaboklab(46.15% 0.0492 -0.2056)
OKLCHoklch(46.15% 0.211 283.5)
XYZxyz(15.0584, 8.4626, 54.8617)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235C7 #AAC735
analogous
#3561C7 #5235C7 #9B35C7
triadic
#5235C7 #C75235 #35C752
tetradic
#5235C7 #C73561 #AAC735 #35C79B
square
#5235C7 #C73561 #AAC735 #35C79B
split-complementary
#5235C7 #C79B35 #61C735
monochromatic
#2A1B66 #3E2897 #5235C7 #7A64D6 #A494E2

Accessibility & contrast

On white

7.80
#5235C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5235C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235C7
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235C7#FFFFFF#000000##FFFFFF
##5235C71.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#045E7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5235c7;
/* rgb */ color: rgb(82, 53, 199);
/* oklch */ color: oklch(46.2% 0.211 283.5);
Tailwind
colors: {
  custom: {
    50: '#9070d9',
    500: '#5235c7',
    950: '#000000',
  },
}
SCSS
$custom: #5235c7;
$custom-light: #9070d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5235c7",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 199
  },
  "hsl": {
    "h": 251.918,
    "s": 57.937,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46151,
    "c": 0.21137,
    "h": 283.5
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#5235C7
secondary
#C0CE8A
accent
#E147C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5235C7

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

Preview Lab → · Contrast checker → · Palette generator →

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