#5825A2#5825A2

#5825A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 295.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5825A2
RGBrgb(88, 37, 162)
HSLhsl(264, 63%, 39%)
HSVhsv(264, 77%, 64%)
CMYKcmyk(45.7%, 77.2%, 0%, 36.5%)
CIE-LABlab(29.43, 49.36, -58.34)
CIE-LCHlch(29.43, 76.42, 310.23°)
OKLaboklab(41.4% 0.0802 -0.1672)
OKLCHoklch(41.4% 0.185 295.6)
XYZxyz(11.2059, 6.0062, 34.7443)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5825A2 #6FA225
analogous
#2531A2 #5825A2 #9725A2
triadic
#5825A2 #A25825 #25A258
tetradic
#5825A2 #A22531 #6FA225 #25A297
square
#5825A2 #A22531 #6FA225 #25A297
split-complementary
#5825A2 #A29725 #31A225
monochromatic
#220E3E #3D1A70 #5825A2 #7434D1 #9665DC

Accessibility & contrast

On white

9.54
#5825A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5825A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5825A2
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5825A2#FFFFFF#000000##FFFFFF
##5825A21.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#434762
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5825a2;
/* rgb */ color: rgb(88, 37, 162);
/* oklch */ color: oklch(41.4% 0.185 295.6);
Tailwind
colors: {
  custom: {
    50: '#8f65bf',
    500: '#5825a2',
    950: '#000000',
  },
}
SCSS
$custom: #5825a2;
$custom-light: #8f65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5825a2",
  "rgb": {
    "r": 88,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 264.48,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41395,
    "c": 0.1854,
    "h": 295.6
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#5825A2
secondary
#9AC261
accent
#E642A3
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5825A2

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

Preview Lab → · Contrast checker → · Palette generator →

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