#5F25A2#5F25A2

#5F25A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.186 H 299.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5F25A2
RGBrgb(95, 37, 162)
HSLhsl(268, 63%, 39%)
HSVhsv(268, 77%, 64%)
CMYKcmyk(41.4%, 77.2%, 0%, 36.5%)
CIE-LABlab(30.31, 50.51, -56.86)
CIE-LCHlch(30.31, 76.06, 311.62°)
OKLaboklab(42.21% 0.0907 -0.1626)
OKLCHoklch(42.21% 0.186 299.2)
XYZxyz(11.9008, 6.3645, 34.7769)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25A2 #68A225
analogous
#252AA2 #5F25A2 #9E25A2
triadic
#5F25A2 #A25F25 #25A25F
tetradic
#5F25A2 #A2252A #68A225 #25A29E
square
#5F25A2 #A2252A #68A225 #25A29E
split-complementary
#5F25A2 #A29E25 #2AA225
monochromatic
#250E3E #421A70 #5F25A2 #7C34D1 #9C65DC

Accessibility & contrast

On white

9.24
#5F25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5F25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25A2
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25A2#FFFFFF#000000##FFFFFF
##5F25A21.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#4F4662
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f25a2;
/* rgb */ color: rgb(95, 37, 162);
/* oklch */ color: oklch(42.2% 0.186 299.2);
Tailwind
colors: {
  custom: {
    50: '#9366be',
    500: '#5f25a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f25a2;
$custom-light: #9366be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25a2",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 267.84,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42212,
    "c": 0.18618,
    "h": 299.2
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#5F25A2
secondary
#95C261
accent
#E6429A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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