#5F2695#5F2695

#5F2695 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.171 H 302.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5F2695
RGBrgb(95, 38, 149)
HSLhsl(271, 59%, 37%)
HSVhsv(271, 74%, 58%)
CMYKcmyk(36.2%, 74.5%, 0%, 41.6%)
CIE-LABlab(29.38, 46.82, -50.45)
CIE-LCHlch(29.38, 68.83, 312.86°)
OKLaboklab(41.22% 0.0929 -0.1437)
OKLCHoklch(41.22% 0.171 302.9)
XYZxyz(10.8360, 5.9890, 29.0131)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2695 #5C9526
analogous
#282695 #5F2695 #952694
triadic
#5F2695 #955F26 #26955F
tetradic
#5F2695 #952826 #5C9526 #269495
square
#5F2695 #952826 #5C9526 #269495
split-complementary
#5F2695 #949526 #269528
monochromatic
#210D33 #401A64 #5F2695 #7E32C6 #9C5FD6

Accessibility & contrast

On white

9.56
#5F2695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F2695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2695
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2695#FFFFFF#000000##FFFFFF
##5F26951.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#54415B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f2695;
/* rgb */ color: rgb(95, 38, 149);
/* oklch */ color: oklch(41.2% 0.171 302.9);
Tailwind
colors: {
  custom: {
    50: '#9266b5',
    500: '#5f2695',
    950: '#000000',
  },
}
SCSS
$custom: #5f2695;
$custom-light: #9266b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2695",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 270.811,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4122,
    "c": 0.17114,
    "h": 302.9
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#5F2695
secondary
#8ABB5B
accent
#E34592
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2695

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

Preview Lab → · Contrast checker → · Palette generator →

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