#AF2F9A#AF2F9A

#AF2F9A is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.9% C 0.199 H 335.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2F9A
RGBrgb(175, 47, 154)
HSLhsl(310, 58%, 44%)
HSVhsv(310, 73%, 69%)
CMYKcmyk(0%, 73.1%, 12%, 31.4%)
CIE-LABlab(43.48, 61.95, -30.25)
CIE-LCHlch(43.48, 68.94, 333.98°)
OKLaboklab(53.91% 0.1811 -0.0825)
OKLCHoklch(53.91% 0.199 335.5)
XYZxyz(24.5288, 13.4823, 31.8761)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9A #2FAF44
analogous
#842FAF #AF2F9A #AF2F5A
triadic
#AF2F9A #9AAF2F #2F9AAF
tetradic
#AF2F9A #AF842F #2FAF44 #2F5AAF
square
#AF2F9A #AF842F #2FAF44 #2F5AAF
split-complementary
#AF2F9A #5AAF2F #2FAF84
monochromatic
#4F1545 #7F2270 #AF2F9A #CF4CBA #DC7CCC

Accessibility & contrast

On white

5.68
#AF2F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F9A
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9A#FFFFFF#000000##FFFFFF
##AF2F9A1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9D
Deuteranopia (green-blind)
#5D6E97
Tritanopia (blue-blind)
#B83961
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9a;
/* rgb */ color: rgb(175, 47, 154);
/* oklch */ color: oklch(53.9% 0.199 335.5);
Tailwind
colors: {
  custom: {
    50: '#cb74b8',
    500: '#af2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9a;
$custom-light: #cb74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9a",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 309.844,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53908,
    "c": 0.19905,
    "h": 335.5
  },
  "luminance": 0.1348
}

Semantic roles & 50–950 ramp

primary
#AF2F9A
secondary
#75C482
accent
#E16047
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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