#5D25A2#5D25A2

#5D25A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.186 H 298.2°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#5D25A2
RGBrgb(93, 37, 162)
HSLhsl(267, 63%, 39%)
HSVhsv(267, 77%, 64%)
CMYKcmyk(42.6%, 77.2%, 0%, 36.5%)
CIE-LABlab(30.06, 50.18, -57.29)
CIE-LCHlch(30.06, 76.16, 311.21°)
OKLaboklab(41.97% 0.0877 -0.1639)
OKLCHoklch(41.97% 0.186 298.2)
XYZxyz(11.6957, 6.2587, 34.7673)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D25A2 #6AA225
analogous
#252CA2 #5D25A2 #9C25A2
triadic
#5D25A2 #A25D25 #25A25D
tetradic
#5D25A2 #A2252C #6AA225 #25A29C
square
#5D25A2 #A2252C #6AA225 #25A29C
split-complementary
#5D25A2 #A29C25 #2CA225
monochromatic
#240E3E #401A70 #5D25A2 #7A34D1 #9B65DC

Accessibility & contrast

On white

9.33
#5D25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D25A2
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D25A2#FFFFFF#000000##FFFFFF
##5D25A21.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#4C4662
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d25a2;
/* rgb */ color: rgb(93, 37, 162);
/* oklch */ color: oklch(42.0% 0.186 298.2);
Tailwind
colors: {
  custom: {
    50: '#9266bf',
    500: '#5d25a2',
    950: '#000000',
  },
}
SCSS
$custom: #5d25a2;
$custom-light: #9266bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d25a2",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 266.88,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.18592,
    "h": 298.2
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#5D25A2
secondary
#96C261
accent
#E6429C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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