#AF4CBE#AF4CBE

#AF4CBE is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.9% C 0.191 H 322.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF4CBE
RGBrgb(175, 76, 190)
HSLhsl(292, 47%, 52%)
HSVhsv(292, 60%, 75%)
CMYKcmyk(7.9%, 60%, 0%, 25.5%)
CIE-LABlab(49.50, 56.43, -42.01)
CIE-LCHlch(49.50, 70.35, 323.33°)
OKLaboklab(58.87% 0.1506 -0.1167)
OKLCHoklch(58.87% 0.191 322.2)
XYZxyz(29.5569, 18.0020, 50.6231)
Luminance0.1800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CBE #5BBE4C
analogous
#764CBE #AF4CBE #BE4C94
triadic
#AF4CBE #BEAF4C #4CBEAF
tetradic
#AF4CBE #BE764C #5BBE4C #4C94BE
square
#AF4CBE #BE764C #5BBE4C #4C94BE
split-complementary
#AF4CBE #94BE4C #4CBE76
monochromatic
#612669 #8A3796 #AF4CBE #C379CE #D7A6DF

Accessibility & contrast

On white

4.57
#AF4CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AF4CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CBE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CBE#FFFFFF#000000##000000
##AF4CBE1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#356EC2
Deuteranopia (green-blind)
#5A7ABB
Tritanopia (blue-blind)
#B15D7E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4cbe;
/* rgb */ color: rgb(175, 76, 190);
/* oklch */ color: oklch(58.9% 0.191 322.2);
Tailwind
colors: {
  custom: {
    50: '#ca84d2',
    500: '#af4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #af4cbe;
$custom-light: #ca84d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cbe",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 292.105,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58866,
    "c": 0.19052,
    "h": 322.2
  },
  "luminance": 0.18001
}

Semantic roles & 50–950 ramp

primary
#AF4CBE
secondary
#A1CC9A
accent
#D65163
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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