#A6338E#A6338E

#A6338E is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.180 H 337.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#A6338E
RGBrgb(166, 51, 142)
HSLhsl(313, 53%, 43%)
HSVhsv(313, 69%, 65%)
CMYKcmyk(0%, 69.3%, 14.5%, 34.9%)
CIE-LABlab(41.89, 56.50, -25.59)
CIE-LCHlch(41.89, 62.02, 335.64°)
OKLaboklab(52.28% 0.1664 -0.0694)
OKLCHoklch(52.28% 0.18 337.3)
XYZxyz(21.7926, 12.4296, 26.8374)
Luminance0.1243 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6338E #33A64B
analogous
#8533A6 #A6338E #A63354
triadic
#A6338E #8EA633 #338EA6
tetradic
#A6338E #A68533 #33A64B #3354A6
square
#A6338E #A68533 #33A64B #3354A6
split-complementary
#A6338E #54A633 #33A685
monochromatic
#48163E #772566 #A6338E #C94EAF #D77CC4

Accessibility & contrast

On white

6.02
#A6338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#A6338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6338E
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6338E#FFFFFF#000000##FFFFFF
##A6338E1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365891
Deuteranopia (green-blind)
#5C698B
Tritanopia (blue-blind)
#AF395C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a6338e;
/* rgb */ color: rgb(166, 51, 142);
/* oklch */ color: oklch(52.3% 0.180 337.3);
Tailwind
colors: {
  custom: {
    50: '#c474af',
    500: '#a6338e',
    950: '#000000',
  },
}
SCSS
$custom: #a6338e;
$custom-light: #c474af;
$custom-dark: #000000;
JSON
{
  "hex": "#a6338e",
  "rgb": {
    "r": 166,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 312.522,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52279,
    "c": 0.18027,
    "h": 337.3
  },
  "luminance": 0.12428
}

Semantic roles & 50–950 ramp

primary
#A6338E
secondary
#75C085
accent
#DC6A4B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A6338E

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

Preview Lab → · Contrast checker → · Palette generator →

#A6338E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva