#A6338F#A6338F

#A6338F is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.3% C 0.181 H 336.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#A6338F
RGBrgb(166, 51, 143)
HSLhsl(312, 53%, 43%)
HSVhsv(312, 69%, 65%)
CMYKcmyk(0%, 69.3%, 13.9%, 34.9%)
CIE-LABlab(41.94, 56.65, -26.12)
CIE-LCHlch(41.94, 62.38, 335.25°)
OKLaboklab(52.33% 0.1665 -0.071)
OKLCHoklch(52.33% 0.181 336.9)
XYZxyz(21.8680, 12.4597, 27.2345)
Luminance0.1246 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6338F #33A64A
analogous
#8333A6 #A6338F #A63356
triadic
#A6338F #8FA633 #338FA6
tetradic
#A6338F #A68333 #33A64A #3356A6
square
#A6338F #A68333 #33A64A #3356A6
split-complementary
#A6338F #56A633 #33A683
monochromatic
#48163E #772567 #A6338F #C94EB0 #D77CC5

Accessibility & contrast

On white

6.01
#A6338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A6338F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6338F#FFFFFF#000000##FFFFFF
##A6338F1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6338f;
/* rgb */ color: rgb(166, 51, 143);
/* oklch */ color: oklch(52.3% 0.181 336.9);
Tailwind
colors: {
  custom: {
    50: '#c474b0',
    500: '#a6338f',
    950: '#000000',
  },
}
SCSS
$custom: #a6338f;
$custom-light: #c474b0;
$custom-dark: #000000;
JSON
{
  "hex": "#a6338f",
  "rgb": {
    "r": 166,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 312,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.18099,
    "h": 336.9
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#A6338F
secondary
#75C084
accent
#DC684B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A6338F

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

Preview Lab → · Contrast checker → · Palette generator →

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