#5F25C6#5F25C6

#5F25C6 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.5% C 0.224 H 290.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5F25C6
RGBrgb(95, 37, 198)
HSLhsl(262, 69%, 46%)
HSVhsv(262, 81%, 78%)
CMYKcmyk(52%, 81.3%, 0%, 22.4%)
CIE-LABlab(33.63, 59.66, -72.84)
CIE-LCHlch(33.63, 94.15, 309.32°)
OKLaboklab(45.53% 0.0796 -0.2094)
OKLCHoklch(45.53% 0.224 290.8)
XYZxyz(15.5710, 7.8326, 54.1065)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25C6 #8CC625
analogous
#253BC6 #5F25C6 #AF25C6
triadic
#5F25C6 #C65F25 #25C65F
tetradic
#5F25C6 #C6253B #8CC625 #25C6AF
square
#5F25C6 #C6253B #8CC625 #25C6AF
split-complementary
#5F25C6 #C6AF25 #3BC625
monochromatic
#2E125F #461B92 #5F25C6 #804BDD #A47EE7

Accessibility & contrast

On white

8.18
#5F25C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5F25C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25C6
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25C6#FFFFFF#000000##FFFFFF
##5F25C61.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#395577
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f25c6;
/* rgb */ color: rgb(95, 37, 198);
/* oklch */ color: oklch(45.5% 0.224 290.8);
Tailwind
colors: {
  custom: {
    50: '#9768d9',
    500: '#5f25c6',
    950: '#000000',
  },
}
SCSS
$custom: #5f25c6;
$custom-light: #9768d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25c6",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 198
  },
  "hsl": {
    "h": 261.615,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45528,
    "c": 0.22404,
    "h": 290.8
  },
  "luminance": 0.07833
}

Semantic roles & 50–950 ramp

primary
#5F25C6
secondary
#B0CF77
accent
#EB3CAC
background
#FAF6FD
surface
#F3EBFB
border
#CDC6D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5F25C6

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

Preview Lab → · Contrast checker → · Palette generator →

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