#AF338E#AF338E

#AF338E is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.7% C 0.186 H 340.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF338E
RGBrgb(175, 51, 142)
HSLhsl(316, 55%, 44%)
HSVhsv(316, 71%, 69%)
CMYKcmyk(0%, 70.9%, 18.9%, 31.4%)
CIE-LABlab(43.41, 58.82, -23.10)
CIE-LCHlch(43.41, 63.19, 338.56°)
OKLaboklab(53.68% 0.1754 -0.0622)
OKLCHoklch(53.68% 0.186 340.5)
XYZxyz(23.7462, 13.4369, 26.9289)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF338E #33AF54
analogous
#9233AF #AF338E #AF3350
triadic
#AF338E #8EAF33 #338EAF
tetradic
#AF338E #AF9233 #33AF54 #3350AF
square
#AF338E #AF9233 #33AF54 #3350AF
split-complementary
#AF338E #50AF33 #33AF92
monochromatic
#501741 #802568 #AF338E #CD52AC #DB82C3

Accessibility & contrast

On white

5.70
#AF338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF338E
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF338E#FFFFFF#000000##FFFFFF
##AF338E1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#636E8B
Tritanopia (blue-blind)
#B9365C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af338e;
/* rgb */ color: rgb(175, 51, 142);
/* oklch */ color: oklch(53.7% 0.186 340.5);
Tailwind
colors: {
  custom: {
    50: '#cb75af',
    500: '#af338e',
    950: '#000000',
  },
}
SCSS
$custom: #af338e;
$custom-light: #cb75af;
$custom-dark: #000000;
JSON
{
  "hex": "#af338e",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 315.968,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.18614,
    "h": 340.5
  },
  "luminance": 0.13435
}

Semantic roles & 50–950 ramp

primary
#AF338E
secondary
#7AC48E
accent
#DE714A
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF338E

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

Preview Lab → · Contrast checker → · Palette generator →

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