#5F25AF#5F25AF

#5F25AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.200 H 295.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5F25AF
RGBrgb(95, 37, 175)
HSLhsl(265, 65%, 42%)
HSVhsv(265, 79%, 69%)
CMYKcmyk(45.7%, 78.9%, 0%, 31.4%)
CIE-LABlab(31.46, 53.79, -62.80)
CIE-LCHlch(31.46, 82.69, 310.58°)
OKLaboklab(43.37% 0.0871 -0.18)
OKLCHoklch(43.37% 0.2 295.8)
XYZxyz(13.1167, 6.8509, 41.1804)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25AF #75AF25
analogous
#2530AF #5F25AF #A425AF
triadic
#5F25AF #AF5F25 #25AF5F
tetradic
#5F25AF #AF2530 #75AF25 #25AFA4
square
#5F25AF #AF2530 #75AF25 #25AFA4
split-complementary
#5F25AF #AFA425 #30AF25
monochromatic
#28104A #441A7C #5F25AF #7C3CD6 #9E6EE0

Accessibility & contrast

On white

8.86
#5F25AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F25AF
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25AF#FFFFFF#000000##FFFFFF
##5F25AF1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#484C6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f25af;
/* rgb */ color: rgb(95, 37, 175);
/* oklch */ color: oklch(43.4% 0.200 295.8);
Tailwind
colors: {
  custom: {
    50: '#9467c8',
    500: '#5f25af',
    950: '#000000',
  },
}
SCSS
$custom: #5f25af;
$custom-light: #9467c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25af",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 175
  },
  "hsl": {
    "h": 265.217,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4337,
    "c": 0.19995,
    "h": 295.8
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F25AF

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

Preview Lab → · Contrast checker → · Palette generator →

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