#5A25BC#5A25BC

#5A25BC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.0% C 0.214 H 290.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5A25BC
RGBrgb(90, 37, 188)
HSLhsl(261, 67%, 44%)
HSVhsv(261, 80%, 74%)
CMYKcmyk(52.1%, 80.3%, 0%, 26.3%)
CIE-LABlab(32.09, 56.46, -69.51)
CIE-LCHlch(32.09, 89.55, 309.08°)
OKLaboklab(44.04% 0.0753 -0.1998)
OKLCHoklch(44.04% 0.214 290.6)
XYZxyz(13.9525, 7.1270, 48.2077)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A25BC #87BC25
analogous
#253BBC #5A25BC #A625BC
triadic
#5A25BC #BC5A25 #25BC5A
tetradic
#5A25BC #BC253B #87BC25 #25BCA6
square
#5A25BC #BC253B #87BC25 #25BCA6
split-complementary
#5A25BC #BCA625 #3BBC25
monochromatic
#291156 #421B89 #5A25BC #7944DA #9D77E4

Accessibility & contrast

On white

8.66
#5A25BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A25BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A25BC
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A25BC#FFFFFF#000000##FFFFFF
##5A25BC1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#365271
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a25bc;
/* rgb */ color: rgb(90, 37, 188);
/* oklch */ color: oklch(44.0% 0.214 290.6);
Tailwind
colors: {
  custom: {
    50: '#9367d1',
    500: '#5a25bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a25bc;
$custom-light: #9367d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a25bc",
  "rgb": {
    "r": 90,
    "g": 37,
    "b": 188
  },
  "hsl": {
    "h": 261.06,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44043,
    "c": 0.21355,
    "h": 290.6
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#5A25BC
secondary
#ACCC71
accent
#EA3EAE
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A25BC

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

Preview Lab → · Contrast checker → · Palette generator →

#5A25BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva