#AF4FBA#AF4FBA

#AF4FBA is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.0% C 0.182 H 323.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF4FBA
RGBrgb(175, 79, 186)
HSLhsl(294, 44%, 52%)
HSVhsv(294, 58%, 73%)
CMYKcmyk(5.9%, 57.5%, 0%, 27.1%)
CIE-LABlab(49.80, 54.28, -39.21)
CIE-LCHlch(49.80, 66.96, 324.16°)
OKLaboklab(59.02% 0.1465 -0.1086)
OKLCHoklch(59.02% 0.182 323.4)
XYZxyz(29.3373, 18.2526, 48.4227)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FBA #5ABA4F
analogous
#7A4FBA #AF4FBA #BA4F8F
triadic
#AF4FBA #BAAF4F #4FBAAF
tetradic
#AF4FBA #BA7A4F #5ABA4F #4F8FBA
square
#AF4FBA #BA7A4F #5ABA4F #4F8FBA
split-complementary
#AF4FBA #8FBA4F #4FBA7A
monochromatic
#602866 #893992 #AF4FBA #C37BCB #D7A7DC

Accessibility & contrast

On white

4.52
#AF4FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AF4FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FBA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FBA#FFFFFF#000000##000000
##AF4FBA1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#5E7AB7
Tritanopia (blue-blind)
#B25E7D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4fba;
/* rgb */ color: rgb(175, 79, 186);
/* oklch */ color: oklch(59.0% 0.182 323.4);
Tailwind
colors: {
  custom: {
    50: '#c985cf',
    500: '#af4fba',
    950: '#000000',
  },
}
SCSS
$custom: #af4fba;
$custom-light: #c985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fba",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 293.832,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59019,
    "c": 0.18238,
    "h": 323.4
  },
  "luminance": 0.18251
}

Semantic roles & 50–950 ramp

primary
#AF4FBA
secondary
#A0CA9B
accent
#D35461
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF4FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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