#AF2E9B#AF2E9B

#AF2E9B is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.201 H 335.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AF2E9B
RGBrgb(175, 46, 155)
HSLhsl(309, 58%, 43%)
HSVhsv(309, 74%, 69%)
CMYKcmyk(0%, 73.7%, 11.4%, 31.4%)
CIE-LABlab(43.41, 62.43, -30.95)
CIE-LCHlch(43.41, 69.68, 333.63°)
OKLaboklab(53.88% 0.1822 -0.0846)
OKLCHoklch(53.88% 0.201 335.1)
XYZxyz(24.5729, 13.4367, 32.3034)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2E9B #2EAF42
analogous
#822EAF #AF2E9B #AF2E5B
triadic
#AF2E9B #9BAF2E #2E9BAF
tetradic
#AF2E9B #AF822E #2EAF42 #2E5BAF
square
#AF2E9B #AF822E #2EAF42 #2E5BAF
split-complementary
#AF2E9B #5BAF2E #2EAF82
monochromatic
#4E1545 #7F2170 #AF2E9B #D04BBB #DC7BCD

Accessibility & contrast

On white

5.70
#AF2E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF2E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2E9B
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2E9B#FFFFFF#000000##FFFFFF
##AF2E9B1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9E
Deuteranopia (green-blind)
#5C6D98
Tritanopia (blue-blind)
#B83861
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2e9b;
/* rgb */ color: rgb(175, 46, 155);
/* oklch */ color: oklch(53.9% 0.201 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb74b9',
    500: '#af2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2e9b;
$custom-light: #cb74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2e9b",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 309.302,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53876,
    "c": 0.20087,
    "h": 335.1
  },
  "luminance": 0.13435
}

Semantic roles & 50–950 ramp

primary
#AF2E9B
secondary
#74C581
accent
#E25E46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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