#5F1895#5F1895

#5F1895 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.185 H 304.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5F1895
RGBrgb(95, 24, 149)
HSLhsl(274, 72%, 34%)
HSVhsv(274, 84%, 58%)
CMYKcmyk(36.2%, 83.9%, 0%, 41.6%)
CIE-LABlab(27.45, 52.39, -53.60)
CIE-LCHlch(27.45, 74.95, 314.34°)
OKLaboklab(39.87% 0.1049 -0.1529)
OKLCHoklch(39.87% 0.185 304.4)
XYZxyz(10.4695, 5.2561, 28.8909)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1895 #4E9518
analogous
#211895 #5F1895 #95188D
triadic
#5F1895 #955F18 #18955F
tetradic
#5F1895 #952118 #4E9518 #188D95
square
#5F1895 #952118 #4E9518 #188D95
split-complementary
#5F1895 #8D9518 #189521
monochromatic
#1C072C #3D1060 #5F1895 #8120CA #9E46E1

Accessibility & contrast

On white

10.24
#5F1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1895
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1895#FFFFFF#000000##FFFFFF
##5F18951.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#543B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1895;
/* rgb */ color: rgb(95, 24, 149);
/* oklch */ color: oklch(39.9% 0.185 304.4);
Tailwind
colors: {
  custom: {
    50: '#9260b5',
    500: '#5f1895',
    950: '#000000',
  },
}
SCSS
$custom: #5f1895;
$custom-light: #9260b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1895",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 274.08,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39867,
    "c": 0.1854,
    "h": 304.4
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#5F1895
secondary
#7CC246
accent
#EF3988
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1895

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

Preview Lab → · Contrast checker → · Palette generator →

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