#5235A2#5235A2

#5235A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.166 H 289.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5235A2
RGBrgb(82, 53, 162)
HSLhsl(256, 51%, 42%)
HSVhsv(256, 67%, 64%)
CMYKcmyk(49.4%, 67.3%, 0%, 36.5%)
CIE-LABlab(31.69, 40.10, -54.68)
CIE-LCHlch(31.69, 67.81, 306.26°)
OKLaboklab(42.85% 0.0562 -0.1567)
OKLCHoklch(42.85% 0.166 289.7)
XYZxyz(11.2725, 6.9482, 34.9226)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5235A2 #85A235
analogous
#354FA2 #5235A2 #8935A2
triadic
#5235A2 #A25235 #35A252
tetradic
#5235A2 #A2354F #85A235 #35A289
square
#5235A2 #A2354F #85A235 #35A289
split-complementary
#5235A2 #A28935 #4FA235
monochromatic
#231746 #3B2674 #5235A2 #6E4FC5 #947DD4

Accessibility & contrast

On white

8.79
#5235A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5235A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5235A2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5235A2#FFFFFF#000000##FFFFFF
##5235A21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#375067
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5235a2;
/* rgb */ color: rgb(82, 53, 162);
/* oklch */ color: oklch(42.8% 0.166 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a6ebe',
    500: '#5235a2',
    950: '#000000',
  },
}
SCSS
$custom: #5235a2;
$custom-light: #8a6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5235a2",
  "rgb": {
    "r": 82,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 255.963,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.16648,
    "h": 289.7
  },
  "luminance": 0.06949
}

Semantic roles & 50–950 ramp

primary
#5235A2
secondary
#AABD75
accent
#DA4EB5
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5235A2

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

Preview Lab → · Contrast checker → · Palette generator →

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