#5F25AE#5F25AE

#5F25AE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.199 H 296.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5F25AE
RGBrgb(95, 37, 174)
HSLhsl(265, 65%, 41%)
HSVhsv(265, 79%, 68%)
CMYKcmyk(45.4%, 78.7%, 0%, 31.8%)
CIE-LABlab(31.37, 53.54, -62.35)
CIE-LCHlch(31.37, 82.18, 310.65°)
OKLaboklab(43.28% 0.0874 -0.1787)
OKLCHoklch(43.28% 0.199 296.1)
XYZxyz(13.0188, 6.8117, 40.6651)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25AE #74AE25
analogous
#2530AE #5F25AE #A425AE
triadic
#5F25AE #AE5F25 #25AE5F
tetradic
#5F25AE #AE2530 #74AE25 #25AEA4
square
#5F25AE #AE2530 #74AE25 #25AEA4
split-complementary
#5F25AE #AEA425 #30AE25
monochromatic
#281049 #431A7C #5F25AE #7C3BD5 #9E6DE0

Accessibility & contrast

On white

8.89
#5F25AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F25AE
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25AE#FFFFFF#000000##FFFFFF
##5F25AE1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#494B69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f25ae;
/* rgb */ color: rgb(95, 37, 174);
/* oklch */ color: oklch(43.3% 0.199 296.1);
Tailwind
colors: {
  custom: {
    50: '#9467c7',
    500: '#5f25ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f25ae;
$custom-light: #9467c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25ae",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 174
  },
  "hsl": {
    "h": 265.401,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43279,
    "c": 0.1989,
    "h": 296.1
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#5F25AE
secondary
#9FC668
accent
#E840A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F25AE

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

Preview Lab → · Contrast checker → · Palette generator →

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