#5235D3#5235D3

#5235D3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.225 H 281.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5235D3
RGBrgb(82, 53, 211)
HSLhsl(251, 64%, 52%)
HSVhsv(251, 75%, 83%)
CMYKcmyk(61.1%, 74.9%, 0%, 17.3%)
CIE-LABlab(36.06, 54.54, -76.44)
CIE-LCHlch(36.06, 93.90, 305.51°)
OKLaboklab(47.3% 0.0464 -0.2205)
OKLCHoklch(47.3% 0.225 281.9)
XYZxyz(16.5070, 9.0420, 62.4908)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235D3 #B6D335
analogous
#3567D3 #5235D3 #A135D3
triadic
#5235D3 #D35235 #35D352
tetradic
#5235D3 #D33567 #B6D335 #35D3A1
square
#5235D3 #D33567 #B6D335 #35D3A1
split-complementary
#5235D3 #D3A135 #67D335
monochromatic
#2A1974 #3C24A7 #5235D3 #7D67DE #A89AE9

Accessibility & contrast

On white

7.48
#5235D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5235D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235D3
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235D3#FFFFFF#000000##FFFFFF
##5235D31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#006282
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5235d3;
/* rgb */ color: rgb(82, 53, 211);
/* oklch */ color: oklch(47.3% 0.225 281.9);
Tailwind
colors: {
  custom: {
    50: '#9270e2',
    500: '#5235d3',
    950: '#000000',
  },
}
SCSS
$custom: #5235d3;
$custom-light: #9270e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5235d3",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 211
  },
  "hsl": {
    "h": 251.013,
    "s": 64.228,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47295,
    "c": 0.22529,
    "h": 281.9
  },
  "luminance": 0.09043
}

Semantic roles & 50–950 ramp

primary
#5235D3
secondary
#C8D58F
accent
#E741C9
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5235D3

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

Preview Lab → · Contrast checker → · Palette generator →

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