#5235AE#5235AE

#5235AE is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.181 H 287.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5235AE
RGBrgb(82, 53, 174)
HSLhsl(254, 53%, 45%)
HSVhsv(254, 70%, 68%)
CMYKcmyk(52.9%, 69.5%, 0%, 31.8%)
CIE-LABlab(32.69, 43.65, -60.25)
CIE-LCHlch(32.69, 74.40, 305.92°)
OKLaboklab(43.88% 0.0543 -0.1731)
OKLCHoklch(43.88% 0.181 287.4)
XYZxyz(12.3905, 7.3954, 40.8108)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235AE #91AE35
analogous
#3555AE #5235AE #8F35AE
triadic
#5235AE #AE5235 #35AE52
tetradic
#5235AE #AE3555 #91AE35 #35AE8F
square
#5235AE #AE3555 #91AE35 #35AE8F
split-complementary
#5235AE #AE8F35 #55AE35
monochromatic
#261850 #3C277F #5235AE #7155CB #9884DA

Accessibility & contrast

On white

8.47
#5235AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5235AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235AE
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235AE#FFFFFF#000000##FFFFFF
##5235AE1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#2E546D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5235ae;
/* rgb */ color: rgb(82, 53, 174);
/* oklch */ color: oklch(43.9% 0.181 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c6fc7',
    500: '#5235ae',
    950: '#000000',
  },
}
SCSS
$custom: #5235ae;
$custom-light: #8c6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5235ae",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 174
  },
  "hsl": {
    "h": 254.38,
    "s": 53.304,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43875,
    "c": 0.18139,
    "h": 287.4
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#5235AE
secondary
#B2C37C
accent
#DD4BBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5235AE

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

Preview Lab → · Contrast checker → · Palette generator →

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