#AF2F9B#AF2F9B

#AF2F9B is a mid, vivid purple. Relative luminance 0.135; OKLCH L 54.0% C 0.200 H 335.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF2F9B
RGBrgb(175, 47, 155)
HSLhsl(309, 58%, 44%)
HSVhsv(309, 73%, 69%)
CMYKcmyk(0%, 73.1%, 11.4%, 31.4%)
CIE-LABlab(43.53, 62.10, -30.77)
CIE-LCHlch(43.53, 69.30, 333.64°)
OKLaboklab(53.96% 0.1812 -0.084)
OKLCHoklch(53.96% 0.2 335.1)
XYZxyz(24.6124, 13.5157, 32.3165)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F9B #2FAF43
analogous
#832FAF #AF2F9B #AF2F5B
triadic
#AF2F9B #9BAF2F #2F9BAF
tetradic
#AF2F9B #AF832F #2FAF43 #2F5BAF
square
#AF2F9B #AF832F #2FAF43 #2F5BAF
split-complementary
#AF2F9B #5BAF2F #2FAF83
monochromatic
#4F1546 #7F2270 #AF2F9B #CF4CBB #DC7CCD

Accessibility & contrast

On white

5.67
#AF2F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F9B
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F9B#FFFFFF#000000##FFFFFF
##AF2F9B1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#5C6E98
Tritanopia (blue-blind)
#B83962
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2f9b;
/* rgb */ color: rgb(175, 47, 155);
/* oklch */ color: oklch(54.0% 0.200 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb74b9',
    500: '#af2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2f9b;
$custom-light: #cb74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f9b",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 309.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5396,
    "c": 0.19976,
    "h": 335.1
  },
  "luminance": 0.13514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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