#5D25B0#5D25B0

#5D25B0 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.201 H 294.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5D25B0
RGBrgb(93, 37, 176)
HSLhsl(264, 65%, 42%)
HSVhsv(264, 79%, 69%)
CMYKcmyk(47.2%, 79%, 0%, 31%)
CIE-LABlab(31.31, 53.75, -63.66)
CIE-LCHlch(31.31, 83.32, 310.18°)
OKLaboklab(43.24% 0.0837 -0.1826)
OKLCHoklch(43.24% 0.201 294.6)
XYZxyz(13.0101, 6.7845, 41.6899)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25B0 #78B025
analogous
#2532B0 #5D25B0 #A325B0
triadic
#5D25B0 #B05D25 #25B05D
tetradic
#5D25B0 #B02532 #78B025 #25B0A3
square
#5D25B0 #B02532 #78B025 #25B0A3
split-complementary
#5D25B0 #B0A325 #32B025
monochromatic
#28104B #421A7D #5D25B0 #7A3CD6 #9D6FE1

Accessibility & contrast

On white

8.91
#5D25B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D25B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25B0
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25B0#FFFFFF#000000##FFFFFF
##5D25B01.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#444C6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d25b0;
/* rgb */ color: rgb(93, 37, 176);
/* oklch */ color: oklch(43.2% 0.201 294.6);
Tailwind
colors: {
  custom: {
    50: '#9367c9',
    500: '#5d25b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d25b0;
$custom-light: #9367c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25b0",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 264.173,
    "s": 65.258,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43236,
    "c": 0.20086,
    "h": 294.6
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#5D25B0
secondary
#A2C76A
accent
#E840A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D25B0

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

Preview Lab → · Contrast checker → · Palette generator →

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