#AF4BC7#AF4BC7

#AF4BC7 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.3% C 0.200 H 319.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF4BC7
RGBrgb(175, 75, 199)
HSLhsl(288, 53%, 54%)
HSVhsv(288, 62%, 78%)
CMYKcmyk(12.1%, 62.3%, 0%, 22%)
CIE-LABlab(49.82, 58.60, -46.70)
CIE-LCHlch(49.82, 74.93, 321.45°)
OKLaboklab(59.26% 0.1521 -0.1304)
OKLCHoklch(59.26% 0.2 319.4)
XYZxyz(30.5028, 18.2710, 55.9417)
Luminance0.1827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BC7 #63C74B
analogous
#714BC7 #AF4BC7 #C74BA1
triadic
#AF4BC7 #C7AF4B #4BC7AF
tetradic
#AF4BC7 #C7714B #63C74B #4BA1C7
square
#AF4BC7 #C7714B #63C74B #4BA1C7
split-complementary
#AF4BC7 #A1C74B #4BC771
monochromatic
#642474 #8D32A2 #AF4BC7 #C47AD6 #D8A8E4

Accessibility & contrast

On white

4.51
#AF4BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4BC7#FFFFFF#000000##000000
##AF4BC71.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2970CB
Deuteranopia (green-blind)
#547AC4
Tritanopia (blue-blind)
#AF6082
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af4bc7;
/* rgb */ color: rgb(175, 75, 199);
/* oklch */ color: oklch(59.3% 0.200 319.4);
Tailwind
colors: {
  custom: {
    50: '#ca83d8',
    500: '#af4bc7',
    950: '#000000',
  },
}
SCSS
$custom: #af4bc7;
$custom-light: #ca83d8;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bc7",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 288.387,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5926,
    "c": 0.20032,
    "h": 319.4
  },
  "luminance": 0.1827
}

Semantic roles & 50–950 ramp

primary
#AF4BC7
secondary
#A7D19C
accent
#DC4C68
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF4BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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