#5F25AC#5F25AC

#5F25AC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.197 H 296.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5F25AC
RGBrgb(95, 37, 172)
HSLhsl(266, 65%, 41%)
HSVhsv(266, 78%, 67%)
CMYKcmyk(44.8%, 78.5%, 0%, 32.5%)
CIE-LABlab(31.19, 53.03, -61.45)
CIE-LCHlch(31.19, 81.17, 310.80°)
OKLaboklab(43.1% 0.0879 -0.176)
OKLCHoklch(43.1% 0.197 296.5)
XYZxyz(12.8253, 6.7343, 39.6458)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25AC #72AC25
analogous
#252EAC #5F25AC #A225AC
triadic
#5F25AC #AC5F25 #25AC5F
tetradic
#5F25AC #AC252E #72AC25 #25ACA2
square
#5F25AC #AC252E #72AC25 #25ACA2
split-complementary
#5F25AC #ACA225 #2EAC25
monochromatic
#270F47 #431A7A #5F25AC #7C3AD5 #9E6CDF

Accessibility & contrast

On white

8.95
#5F25AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F25AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25AC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25AC#FFFFFF#000000##FFFFFF
##5F25AC1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#4A4A68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f25ac;
/* rgb */ color: rgb(95, 37, 172);
/* oklch */ color: oklch(43.1% 0.197 296.5);
Tailwind
colors: {
  custom: {
    50: '#9467c6',
    500: '#5f25ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f25ac;
$custom-light: #9467c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25ac",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 172
  },
  "hsl": {
    "h": 265.778,
    "s": 64.593,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43098,
    "c": 0.19678,
    "h": 296.5
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#5F25AC
secondary
#9DC667
accent
#E840A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F25AC

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

Preview Lab → · Contrast checker → · Palette generator →

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