#AF2F9D#AF2F9D

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

Color values

HEX#AF2F9D
RGBrgb(175, 47, 157)
HSLhsl(308, 58%, 44%)
HSVhsv(308, 73%, 69%)
CMYKcmyk(0%, 73.1%, 10.3%, 31.4%)
CIE-LABlab(43.63, 62.40, -31.82)
CIE-LCHlch(43.63, 70.04, 332.98°)
OKLaboklab(54.06% 0.1814 -0.087)
OKLCHoklch(54.06% 0.201 334.4)
XYZxyz(24.7818, 13.5835, 33.2084)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9D #2FAF41
analogous
#812FAF #AF2F9D #AF2F5D
triadic
#AF2F9D #9DAF2F #2F9DAF
tetradic
#AF2F9D #AF812F #2FAF41 #2F5DAF
square
#AF2F9D #AF812F #2FAF41 #2F5DAF
split-complementary
#AF2F9D #5DAF2F #2FAF81
monochromatic
#4F1546 #7F2272 #AF2F9D #CF4CBD #DC7CCF

Accessibility & contrast

On white

5.65
#AF2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F9D
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9D#FFFFFF#000000##FFFFFF
##AF2F9D1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5BA0
Deuteranopia (green-blind)
#5B6E9A
Tritanopia (blue-blind)
#B73A63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9d;
/* rgb */ color: rgb(175, 47, 157);
/* oklch */ color: oklch(54.1% 0.201 334.4);
Tailwind
colors: {
  custom: {
    50: '#cb74ba',
    500: '#af2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9d;
$custom-light: #cb74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9d",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 308.438,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54063,
    "c": 0.2012,
    "h": 334.4
  },
  "luminance": 0.13581
}

Semantic roles & 50–950 ramp

primary
#AF2F9D
secondary
#75C480
accent
#E15D47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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