#5F25A9#5F25A9

#5F25A9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.194 H 297.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5F25A9
RGBrgb(95, 37, 169)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 66%)
CMYKcmyk(43.8%, 78.1%, 0%, 33.7%)
CIE-LABlab(30.93, 52.27, -60.08)
CIE-LCHlch(30.93, 79.64, 311.02°)
OKLaboklab(42.83% 0.0888 -0.172)
OKLCHoklch(42.83% 0.194 297.3)
XYZxyz(12.5404, 6.6204, 38.1456)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25A9 #6FA925
analogous
#252DA9 #5F25A9 #A125A9
triadic
#5F25A9 #A95F25 #25A95F
tetradic
#5F25A9 #A9252D #6FA925 #25A9A1
square
#5F25A9 #A9252D #6FA925 #25A9A1
split-complementary
#5F25A9 #A9A125 #2DA925
monochromatic
#270F45 #431A77 #5F25A9 #7C38D3 #9D6ADE

Accessibility & contrast

On white

9.04
#5F25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25A9
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25A9#FFFFFF#000000##FFFFFF
##5F25A91.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#4C4966
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f25a9;
/* rgb */ color: rgb(95, 37, 169);
/* oklch */ color: oklch(42.8% 0.194 297.3);
Tailwind
colors: {
  custom: {
    50: '#9466c4',
    500: '#5f25a9',
    950: '#000000',
  },
}
SCSS
$custom: #5f25a9;
$custom-light: #9466c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25a9",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 266.364,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.19361,
    "h": 297.3
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#5F25A9
secondary
#9BC465
accent
#E7419E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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