#AF2F9F#AF2F9F

#AF2F9F is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.2% C 0.203 H 333.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF2F9F
RGBrgb(175, 47, 159)
HSLhsl(308, 58%, 44%)
HSVhsv(308, 73%, 69%)
CMYKcmyk(0%, 73.1%, 9.1%, 31.4%)
CIE-LABlab(43.73, 62.70, -32.86)
CIE-LCHlch(43.73, 70.79, 332.35°)
OKLaboklab(54.17% 0.1815 -0.09)
OKLCHoklch(54.17% 0.203 333.6)
XYZxyz(24.9539, 13.6523, 34.1151)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9F #2FAF3F
analogous
#7F2FAF #AF2F9F #AF2F5F
triadic
#AF2F9F #9FAF2F #2F9FAF
tetradic
#AF2F9F #AF7F2F #2FAF3F #2F5FAF
square
#AF2F9F #AF7F2F #2FAF3F #2F5FAF
split-complementary
#AF2F9F #5FAF2F #2FAF7F
monochromatic
#4F1547 #7F2273 #AF2F9F #CF4CBF #DC7CD0

Accessibility & contrast

On white

5.63
#AF2F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F9F
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9F#FFFFFF#000000##FFFFFF
##AF2F9F1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5CA2
Deuteranopia (green-blind)
#5A6E9C
Tritanopia (blue-blind)
#B73B64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9f;
/* rgb */ color: rgb(175, 47, 159);
/* oklch */ color: oklch(54.2% 0.203 333.6);
Tailwind
colors: {
  custom: {
    50: '#cb74bc',
    500: '#af2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9f;
$custom-light: #cb74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9f",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 307.5,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54169,
    "c": 0.20263,
    "h": 333.6
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#AF2F9F
secondary
#75C47F
accent
#E15A47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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