#5B148F#5B148F

#5B148F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.182 H 304.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5B148F
RGBrgb(91, 20, 143)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 56%)
CMYKcmyk(36.4%, 86%, 0%, 43.9%)
CIE-LABlab(25.89, 51.67, -52.48)
CIE-LCHlch(25.89, 73.65, 314.56°)
OKLaboklab(38.49% 0.1036 -0.1497)
OKLCHoklch(38.49% 0.182 304.7)
XYZxyz(9.5213, 4.7077, 26.3883)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B148F #488F14
analogous
#1D148F #5B148F #8F1486
triadic
#5B148F #8F5B14 #148F5B
tetradic
#5B148F #8F1D14 #488F14 #14868F
square
#5B148F #8F1D14 #488F14 #14868F
split-complementary
#5B148F #868F14 #148F1D
monochromatic
#170524 #390C59 #5B148F #7D1CC5 #9C3AE3

Accessibility & contrast

On white

10.82
#5B148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B148F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B148F#FFFFFF#000000##FFFFFF
##5B148F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#513754
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b148f;
/* rgb */ color: rgb(91, 20, 143);
/* oklch */ color: oklch(38.5% 0.182 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5b148f',
    950: '#000000',
  },
}
SCSS
$custom: #5b148f;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b148f",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 274.634,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38493,
    "c": 0.18205,
    "h": 304.7
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#5B148F
secondary
#75C33C
accent
#F23685
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B148F

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

Preview Lab → · Contrast checker → · Palette generator →

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