#5F25A6#5F25A6

#5F25A6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.190 H 298.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5F25A6
RGBrgb(95, 37, 166)
HSLhsl(267, 64%, 40%)
HSVhsv(267, 78%, 65%)
CMYKcmyk(42.8%, 77.7%, 0%, 34.9%)
CIE-LABlab(30.66, 51.52, -58.71)
CIE-LCHlch(30.66, 78.11, 311.27°)
OKLaboklab(42.56% 0.0896 -0.168)
OKLCHoklch(42.56% 0.19 298.1)
XYZxyz(12.2620, 6.5090, 36.6793)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25A6 #6CA625
analogous
#252BA6 #5F25A6 #A025A6
triadic
#5F25A6 #A65F25 #25A65F
tetradic
#5F25A6 #A6252B #6CA625 #25A6A0
square
#5F25A6 #A6252B #6CA625 #25A6A0
split-complementary
#5F25A6 #A6A025 #2BA625
monochromatic
#260F42 #421A74 #5F25A6 #7C36D2 #9D68DD

Accessibility & contrast

On white

9.12
#5F25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25A6
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25A6#FFFFFF#000000##FFFFFF
##5F25A61.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#4D4865
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f25a6;
/* rgb */ color: rgb(95, 37, 166);
/* oklch */ color: oklch(42.6% 0.190 298.1);
Tailwind
colors: {
  custom: {
    50: '#9366c1',
    500: '#5f25a6',
    950: '#000000',
  },
}
SCSS
$custom: #5f25a6;
$custom-light: #9366c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25a6",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 266.977,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.19043,
    "h": 298.1
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#5F25A6
secondary
#98C364
accent
#E7419C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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