#5A148F#5A148F

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

Color values

HEX#5A148F
RGBrgb(90, 20, 143)
HSLhsl(274, 75%, 32%)
HSVhsv(274, 86%, 56%)
CMYKcmyk(37.1%, 86%, 0%, 43.9%)
CIE-LABlab(25.73, 51.52, -52.73)
CIE-LCHlch(25.73, 73.72, 314.34°)
OKLaboklab(38.36% 0.1021 -0.1505)
OKLCHoklch(38.36% 0.182 304.1)
XYZxyz(9.4234, 4.6572, 26.3838)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148F #498F14
analogous
#1C148F #5A148F #8F1487
triadic
#5A148F #8F5A14 #148F5A
tetradic
#5A148F #8F1C14 #498F14 #14878F
square
#5A148F #8F1C14 #498F14 #14878F
split-complementary
#5A148F #878F14 #148F1C
monochromatic
#160524 #380C59 #5A148F #7C1CC5 #9A3AE3

Accessibility & contrast

On white

10.87
#5A148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A148F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148F#FFFFFF#000000##FFFFFF
##5A148F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a148f;
/* rgb */ color: rgb(90, 20, 143);
/* oklch */ color: oklch(38.4% 0.182 304.1);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5a148f',
    950: '#000000',
  },
}
SCSS
$custom: #5a148f;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148f",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 274.146,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38358,
    "c": 0.18184,
    "h": 304.1
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#5A148F
secondary
#76C33C
accent
#F23687
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A148F

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

Preview Lab → · Contrast checker → · Palette generator →

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