#AF2CB8#AF2CB8

#AF2CB8 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.225 H 325.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF2CB8
RGBrgb(175, 44, 184)
HSLhsl(296, 61%, 45%)
HSVhsv(296, 76%, 72%)
CMYKcmyk(4.9%, 76.1%, 0%, 27.8%)
CIE-LABlab(44.77, 67.68, -46.03)
CIE-LCHlch(44.77, 81.85, 325.78°)
OKLaboklab(55.36% 0.1844 -0.1282)
OKLCHoklch(55.36% 0.225 325.2)
XYZxyz(27.2310, 14.3778, 46.6790)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CB8 #35B82C
analogous
#692CB8 #AF2CB8 #B82C7B
triadic
#AF2CB8 #B8AF2C #2CB8AF
tetradic
#AF2CB8 #B8692C #35B82C #2C7BB8
square
#AF2CB8 #B8692C #35B82C #2C7BB8
split-complementary
#AF2CB8 #7BB82C #2CB869
monochromatic
#511455 #802087 #AF2CB8 #CC4DD4 #DA7EE0

Accessibility & contrast

On white

5.42
#AF2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF2CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CB8
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CB8#FFFFFF#000000##FFFFFF
##AF2CB81.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4B6FB5
Tritanopia (blue-blind)
#B34671
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2cb8;
/* rgb */ color: rgb(175, 44, 184);
/* oklch */ color: oklch(55.4% 0.225 325.2);
Tailwind
colors: {
  custom: {
    50: '#cb74ce',
    500: '#af2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #af2cb8;
$custom-light: #cb74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2cb8",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 296.143,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55355,
    "c": 0.22459,
    "h": 325.2
  },
  "luminance": 0.14376
}

Semantic roles & 50–950 ramp

primary
#AF2CB8
secondary
#7CC977
accent
#E5434E
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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