#5D25C6#5D25C6

#5D25C6 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.3% C 0.224 H 290.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5D25C6
RGBrgb(93, 37, 198)
HSLhsl(261, 69%, 46%)
HSVhsv(261, 81%, 78%)
CMYKcmyk(53%, 81.3%, 0%, 22.4%)
CIE-LABlab(33.41, 59.42, -73.22)
CIE-LCHlch(33.41, 94.30, 309.06°)
OKLaboklab(45.32% 0.0766 -0.2106)
OKLCHoklch(45.32% 0.224 290)
XYZxyz(15.3659, 7.7268, 54.0969)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25C6 #8EC625
analogous
#253DC6 #5D25C6 #AD25C6
triadic
#5D25C6 #C65D25 #25C65D
tetradic
#5D25C6 #C6253D #8EC625 #25C6AD
square
#5D25C6 #C6253D #8EC625 #25C6AD
split-complementary
#5D25C6 #C6AD25 #3DC625
monochromatic
#2D125F #451B92 #5D25C6 #7E4BDD #A37EE7

Accessibility & contrast

On white

8.25
#5D25C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5D25C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25C6
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25C6#FFFFFF#000000##FFFFFF
##5D25C61.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#355677
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d25c6;
/* rgb */ color: rgb(93, 37, 198);
/* oklch */ color: oklch(45.3% 0.224 290.0);
Tailwind
colors: {
  custom: {
    50: '#9668d9',
    500: '#5d25c6',
    950: '#000000',
  },
}
SCSS
$custom: #5d25c6;
$custom-light: #9668d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25c6",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 198
  },
  "hsl": {
    "h": 260.87,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.22406,
    "h": 290
  },
  "luminance": 0.07728
}

Semantic roles & 50–950 ramp

primary
#5D25C6
secondary
#B1CF77
accent
#EB3CAF
background
#FAF6FD
surface
#F3EBFB
border
#CDC6D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5D25C6

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

Preview Lab → · Contrast checker → · Palette generator →

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