#A8338C#A8338C

#A8338C is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.5% C 0.180 H 338.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#A8338C
RGBrgb(168, 51, 140)
HSLhsl(314, 53%, 43%)
HSVhsv(314, 70%, 66%)
CMYKcmyk(0%, 69.6%, 16.7%, 34.1%)
CIE-LABlab(42.14, 56.72, -23.96)
CIE-LCHlch(42.14, 61.57, 337.10°)
OKLaboklab(52.49% 0.1681 -0.0648)
OKLCHoklch(52.49% 0.18 338.9)
XYZxyz(22.0664, 12.5880, 26.0734)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8338C #33A84F
analogous
#8933A8 #A8338C #A83351
triadic
#A8338C #8CA833 #338CA8
tetradic
#A8338C #A88933 #33A84F #3351A8
square
#A8338C #A88933 #33A84F #3351A8
split-complementary
#A8338C #51A833 #33A889
monochromatic
#4A163E #792565 #A8338C #C94FAC #D87EC2

Accessibility & contrast

On white

5.97
#A8338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A8338C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A8338C
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8338C#FFFFFF#000000##FFFFFF
##A8338C1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39588F
Deuteranopia (green-blind)
#5E6A89
Tritanopia (blue-blind)
#B1375B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a8338c;
/* rgb */ color: rgb(168, 51, 140);
/* oklch */ color: oklch(52.5% 0.180 338.9);
Tailwind
colors: {
  custom: {
    50: '#c575ae',
    500: '#a8338c',
    950: '#000000',
  },
}
SCSS
$custom: #a8338c;
$custom-light: #c575ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a8338c",
  "rgb": {
    "r": 168,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 314.359,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.18017,
    "h": 338.9
  },
  "luminance": 0.12586
}

Semantic roles & 50–950 ramp

primary
#A8338C
secondary
#76C188
accent
#DD6E4B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A8338C

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

Preview Lab → · Contrast checker → · Palette generator →

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