#AF2F9E#AF2F9E

#AF2F9E is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.202 H 334.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF2F9E
RGBrgb(175, 47, 158)
HSLhsl(308, 58%, 44%)
HSVhsv(308, 73%, 69%)
CMYKcmyk(0%, 73.1%, 9.7%, 31.4%)
CIE-LABlab(43.68, 62.55, -32.34)
CIE-LCHlch(43.68, 70.42, 332.66°)
OKLaboklab(54.12% 0.1815 -0.0885)
OKLCHoklch(54.12% 0.202 334)
XYZxyz(24.8675, 13.6177, 33.6599)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9E #2FAF40
analogous
#802FAF #AF2F9E #AF2F5E
triadic
#AF2F9E #9EAF2F #2F9EAF
tetradic
#AF2F9E #AF802F #2FAF40 #2F5EAF
square
#AF2F9E #AF802F #2FAF40 #2F5EAF
split-complementary
#AF2F9E #5EAF2F #2FAF80
monochromatic
#4F1547 #7F2272 #AF2F9E #CF4CBE #DC7CCF

Accessibility & contrast

On white

5.64
#AF2F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF2F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F9E
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9E#FFFFFF#000000##FFFFFF
##AF2F9E1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA1
Deuteranopia (green-blind)
#5B6E9B
Tritanopia (blue-blind)
#B73B63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9e;
/* rgb */ color: rgb(175, 47, 158);
/* oklch */ color: oklch(54.1% 0.202 334.0);
Tailwind
colors: {
  custom: {
    50: '#cb74bb',
    500: '#af2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9e;
$custom-light: #cb74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9e",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 307.969,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.20191,
    "h": 334
  },
  "luminance": 0.13616
}

Semantic roles & 50–950 ramp

primary
#AF2F9E
secondary
#75C480
accent
#E15B47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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