#AF2F9C#AF2F9C

#AF2F9C is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.200 H 334.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF2F9C
RGBrgb(175, 47, 156)
HSLhsl(309, 58%, 44%)
HSVhsv(309, 73%, 69%)
CMYKcmyk(0%, 73.1%, 10.9%, 31.4%)
CIE-LABlab(43.58, 62.25, -31.29)
CIE-LCHlch(43.58, 69.67, 333.31°)
OKLaboklab(54.01% 0.1813 -0.0855)
OKLCHoklch(54.01% 0.2 334.7)
XYZxyz(24.6967, 13.5494, 32.7606)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9C #2FAF42
analogous
#822FAF #AF2F9C #AF2F5C
triadic
#AF2F9C #9CAF2F #2F9CAF
tetradic
#AF2F9C #AF822F #2FAF42 #2F5CAF
square
#AF2F9C #AF822F #2FAF42 #2F5CAF
split-complementary
#AF2F9C #5CAF2F #2FAF82
monochromatic
#4F1546 #7F2271 #AF2F9C #CF4CBC #DC7CCE

Accessibility & contrast

On white

5.66
#AF2F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF2F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F9C
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9C#FFFFFF#000000##FFFFFF
##AF2F9C1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5B9F
Deuteranopia (green-blind)
#5C6E99
Tritanopia (blue-blind)
#B83A62
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9c;
/* rgb */ color: rgb(175, 47, 156);
/* oklch */ color: oklch(54.0% 0.200 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb74b9',
    500: '#af2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9c;
$custom-light: #cb74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9c",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 308.906,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.20048,
    "h": 334.7
  },
  "luminance": 0.13547
}

Semantic roles & 50–950 ramp

primary
#AF2F9C
secondary
#75C481
accent
#E15E47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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