#5F25A0#5F25A0

#5F25A0 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.184 H 299.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5F25A0
RGBrgb(95, 37, 160)
HSLhsl(268, 62%, 39%)
HSVhsv(268, 77%, 63%)
CMYKcmyk(40.6%, 76.9%, 0%, 37.3%)
CIE-LABlab(30.14, 50.01, -55.93)
CIE-LCHlch(30.14, 75.03, 311.80°)
OKLaboklab(42.04% 0.0913 -0.1598)
OKLCHoklch(42.04% 0.184 299.7)
XYZxyz(11.7245, 6.2940, 33.8480)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25A0 #66A025
analogous
#2528A0 #5F25A0 #9C25A0
triadic
#5F25A0 #A05F25 #25A05F
tetradic
#5F25A0 #A02528 #66A025 #25A09C
square
#5F25A0 #A02528 #66A025 #25A09C
split-complementary
#5F25A0 #A09C25 #28A025
monochromatic
#240E3D #411A6E #5F25A0 #7D32D0 #9C64DB

Accessibility & contrast

On white

9.30
#5F25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25A0
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25A0#FFFFFF#000000##FFFFFF
##5F25A01.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#504561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f25a0;
/* rgb */ color: rgb(95, 37, 160);
/* oklch */ color: oklch(42.0% 0.184 299.7);
Tailwind
colors: {
  custom: {
    50: '#9366bd',
    500: '#5f25a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f25a0;
$custom-light: #9366bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25a0",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 268.293,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42038,
    "c": 0.18405,
    "h": 299.7
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#5F25A0
secondary
#93C160
accent
#E64299
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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