#5F138F#5F138F

#5F138F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.184 H 306.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5F138F
RGBrgb(95, 19, 143)
HSLhsl(277, 77%, 32%)
HSVhsv(277, 87%, 56%)
CMYKcmyk(33.6%, 86.7%, 0%, 43.9%)
CIE-LABlab(26.40, 52.58, -51.62)
CIE-LCHlch(26.40, 73.69, 315.53°)
OKLaboklab(38.97% 0.1102 -0.147)
OKLCHoklch(38.97% 0.184 306.8)
XYZxyz(9.9090, 4.8819, 26.4016)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F138F #438F13
analogous
#21138F #5F138F #8F1381
triadic
#5F138F #8F5F13 #138F5F
tetradic
#5F138F #8F2113 #438F13 #13818F
square
#5F138F #8F2113 #438F13 #13818F
split-complementary
#5F138F #818F13 #138F21
monochromatic
#170523 #3B0C59 #5F138F #831AC5 #A238E5

Accessibility & contrast

On white

10.63
#5F138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F138F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F138F#FFFFFF#000000##FFFFFF
##5F138F1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#563754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f138f;
/* rgb */ color: rgb(95, 19, 143);
/* oklch */ color: oklch(39.0% 0.184 306.8);
Tailwind
colors: {
  custom: {
    50: '#925db1',
    500: '#5f138f',
    950: '#000000',
  },
}
SCSS
$custom: #5f138f;
$custom-light: #925db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f138f",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 276.774,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.18373,
    "h": 306.8
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#5F138F
secondary
#70C33B
accent
#F3357E
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F138F

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

Preview Lab → · Contrast checker → · Palette generator →

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