#5A1246#5A1246

#5A1246 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.8% C 0.119 H 341.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#5A1246
RGBrgb(90, 18, 70)
HSLhsl(317, 67%, 21%)
HSVhsv(317, 80%, 35%)
CMYKcmyk(0%, 80%, 22.2%, 64.7%)
CIE-LABlab(20.24, 37.64, -14.00)
CIE-LCHlch(20.24, 40.16, 339.59°)
OKLaboklab(32.82% 0.1129 -0.0377)
OKLCHoklch(32.82% 0.119 341.5)
XYZxyz(5.5384, 3.0490, 6.0900)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1246 #125A26
analogous
#4A125A #5A1246 #5A1222
triadic
#5A1246 #465A12 #12465A
tetradic
#5A1246 #5A4A12 #125A26 #12225A
square
#5A1246 #5A4A12 #125A26 #12225A
split-complementary
#5A1246 #225A12 #125A4A
monochromatic
#1A0514 #27081E #5A1246 #8D1C6E #C02695

Accessibility & contrast

On white

13.05
#5A1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1246
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1246#FFFFFF#000000##FFFFFF
##5A12461.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182947
Deuteranopia (green-blind)
#2F3544
Tritanopia (blue-blind)
#60132A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1246;
/* rgb */ color: rgb(90, 18, 70);
/* oklch */ color: oklch(32.8% 0.119 341.5);
Tailwind
colors: {
  custom: {
    50: '#8c5879',
    500: '#5a1246',
    950: '#000000',
  },
}
SCSS
$custom: #5a1246;
$custom-light: #8c5879;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1246",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 316.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32818,
    "c": 0.11899,
    "h": 341.5
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#5A1246
secondary
#35934F
accent
#EA6E3E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1246

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

Preview Lab → · Contrast checker → · Palette generator →

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