#5235AD#5235AD

#5235AD is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.180 H 287.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5235AD
RGBrgb(82, 53, 173)
HSLhsl(255, 53%, 44%)
HSVhsv(255, 69%, 68%)
CMYKcmyk(52.6%, 69.4%, 0%, 32.2%)
CIE-LABlab(32.61, 43.35, -59.79)
CIE-LCHlch(32.61, 73.86, 305.94°)
OKLaboklab(43.79% 0.0545 -0.1717)
OKLCHoklch(43.79% 0.18 287.6)
XYZxyz(12.2934, 7.3566, 40.2993)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235AD #90AD35
analogous
#3554AD #5235AD #8E35AD
triadic
#5235AD #AD5235 #35AD52
tetradic
#5235AD #AD3554 #90AD35 #35AD8E
square
#5235AD #AD3554 #90AD35 #35AD8E
split-complementary
#5235AD #AD8E35 #54AD35
monochromatic
#26184F #3C277E #5235AD #7154CB #9883D9

Accessibility & contrast

On white

8.50
#5235AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5235AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235AD
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235AD#FFFFFF#000000##FFFFFF
##5235AD1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0049AB
Tritanopia (blue-blind)
#2F546D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5235ad;
/* rgb */ color: rgb(82, 53, 173);
/* oklch */ color: oklch(43.8% 0.180 287.6);
Tailwind
colors: {
  custom: {
    50: '#8b6fc6',
    500: '#5235ad',
    950: '#000000',
  },
}
SCSS
$custom: #5235ad;
$custom-light: #8b6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5235ad",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 173
  },
  "hsl": {
    "h": 254.5,
    "s": 53.097,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43788,
    "c": 0.18017,
    "h": 287.6
  },
  "luminance": 0.07357
}

Semantic roles & 50–950 ramp

primary
#5235AD
secondary
#B1C37B
accent
#DD4BB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5235AD

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

Preview Lab → · Contrast checker → · Palette generator →

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