#5D25B1#5D25B1

#5D25B1 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.3% C 0.202 H 294.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5D25B1
RGBrgb(93, 37, 177)
HSLhsl(264, 65%, 42%)
HSVhsv(264, 79%, 69%)
CMYKcmyk(47.5%, 79.1%, 0%, 30.6%)
CIE-LABlab(31.40, 54.01, -64.10)
CIE-LCHlch(31.40, 83.82, 310.12°)
OKLaboklab(43.33% 0.0834 -0.1839)
OKLCHoklch(43.33% 0.202 294.4)
XYZxyz(13.1094, 6.8242, 42.2129)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25B1 #79B125
analogous
#2533B1 #5D25B1 #A325B1
triadic
#5D25B1 #B15D25 #25B15D
tetradic
#5D25B1 #B12533 #79B125 #25B1A3
square
#5D25B1 #B12533 #79B125 #25B1A3
split-complementary
#5D25B1 #B1A325 #33B125
monochromatic
#28104C #421A7E #5D25B1 #7A3DD6 #9D6FE1

Accessibility & contrast

On white

8.88
#5D25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5D25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25B1
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25B1#FFFFFF#000000##FFFFFF
##5D25B11.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#444D6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d25b1;
/* rgb */ color: rgb(93, 37, 177);
/* oklch */ color: oklch(43.3% 0.202 294.4);
Tailwind
colors: {
  custom: {
    50: '#9367c9',
    500: '#5d25b1',
    950: '#000000',
  },
}
SCSS
$custom: #5d25b1;
$custom-light: #9367c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25b1",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 264,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43328,
    "c": 0.20193,
    "h": 294.4
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#5D25B1
secondary
#A2C86A
accent
#E83FA5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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