#A6338B#A6338B

#A6338B is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.1% C 0.178 H 338.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#A6338B
RGBrgb(166, 51, 139)
HSLhsl(314, 53%, 43%)
HSVhsv(314, 69%, 65%)
CMYKcmyk(0%, 69.3%, 16.3%, 34.9%)
CIE-LABlab(41.75, 56.05, -23.97)
CIE-LCHlch(41.75, 60.96, 336.84°)
OKLaboklab(52.13% 0.1659 -0.0649)
OKLCHoklch(52.13% 0.178 338.6)
XYZxyz(21.5704, 12.3407, 25.6671)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6338B #33A64E
analogous
#8733A6 #A6338B #A63352
triadic
#A6338B #8BA633 #338BA6
tetradic
#A6338B #A68733 #33A64E #3352A6
square
#A6338B #A68733 #33A64E #3352A6
split-complementary
#A6338B #52A633 #33A687
monochromatic
#48163D #772564 #A6338B #C94EAC #D77CC2

Accessibility & contrast

On white

6.06
#A6338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A6338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A6338B
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6338B#FFFFFF#000000##FFFFFF
##A6338B1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578E
Deuteranopia (green-blind)
#5D6988
Tritanopia (blue-blind)
#AF385A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a6338b;
/* rgb */ color: rgb(166, 51, 139);
/* oklch */ color: oklch(52.1% 0.178 338.6);
Tailwind
colors: {
  custom: {
    50: '#c474ad',
    500: '#a6338b',
    950: '#000000',
  },
}
SCSS
$custom: #a6338b;
$custom-light: #c474ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a6338b",
  "rgb": {
    "r": 166,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 314.087,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.17815,
    "h": 338.6
  },
  "luminance": 0.12339
}

Semantic roles & 50–950 ramp

primary
#A6338B
secondary
#75C087
accent
#DC6D4B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A6338B

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

Preview Lab → · Contrast checker → · Palette generator →

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