#AF50BA#AF50BA

#AF50BA is a mid, vivid purple. Relative luminance 0.184; OKLCH L 59.1% C 0.181 H 323.4°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF50BA
RGBrgb(175, 80, 186)
HSLhsl(294, 43%, 52%)
HSVhsv(294, 57%, 73%)
CMYKcmyk(5.9%, 57%, 0%, 27.1%)
CIE-LABlab(49.98, 53.81, -38.94)
CIE-LCHlch(49.98, 66.42, 324.11°)
OKLaboklab(59.15% 0.1452 -0.1079)
OKLCHoklch(59.15% 0.181 323.4)
XYZxyz(29.4099, 18.3980, 48.4469)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50BA #5BBA50
analogous
#7A50BA #AF50BA #BA5090
triadic
#AF50BA #BAAF50 #50BAAF
tetradic
#AF50BA #BA7A50 #5BBA50 #5090BA
square
#AF50BA #BA7A50 #5BBA50 #5090BA
split-complementary
#AF50BA #90BA50 #50BA7A
monochromatic
#612967 #8A3A93 #AF50BA #C37CCB #D7A8DD

Accessibility & contrast

On white

4.49
#AF50BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#AF50BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50BA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50BA#FFFFFF#000000##000000
##AF50BA1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BD
Deuteranopia (green-blind)
#5F7BB7
Tritanopia (blue-blind)
#B25F7D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af50ba;
/* rgb */ color: rgb(175, 80, 186);
/* oklch */ color: oklch(59.1% 0.181 323.4);
Tailwind
colors: {
  custom: {
    50: '#c986cf',
    500: '#af50ba',
    950: '#000000',
  },
}
SCSS
$custom: #af50ba;
$custom-light: #c986cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af50ba",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 186
  },
  "hsl": {
    "h": 293.774,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59146,
    "c": 0.18087,
    "h": 323.4
  },
  "luminance": 0.18396
}

Semantic roles & 50–950 ramp

primary
#AF50BA
secondary
#A1CA9C
accent
#D35562
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AF50BA

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

Preview Lab → · Contrast checker → · Palette generator →

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