#AF4BD8#AF4BD8

#AF4BD8 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.3% C 0.216 H 314.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF4BD8
RGBrgb(175, 75, 216)
HSLhsl(283, 64%, 57%)
HSVhsv(283, 65%, 85%)
CMYKcmyk(19%, 65.3%, 0%, 15.3%)
CIE-LABlab(50.81, 61.98, -54.86)
CIE-LCHlch(50.81, 82.77, 318.49°)
OKLaboklab(60.29% 0.1518 -0.1542)
OKLCHoklch(60.29% 0.216 314.5)
XYZxyz(32.5879, 19.1051, 66.9234)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BD8 #74D84B
analogous
#684BD8 #AF4BD8 #D84BBB
triadic
#AF4BD8 #D8AF4B #4BD8AF
tetradic
#AF4BD8 #D8684B #74D84B #4BBBD8
square
#AF4BD8 #D8684B #74D84B #4BBBD8
split-complementary
#AF4BD8 #BBD84B #4BD868
monochromatic
#6B1E8B #9229BD #AF4BD8 #C57DE3 #DCB0EE

Accessibility & contrast

On white

4.36
#AF4BD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF4BD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BD8
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BD8#FFFFFF#000000##000000
##AF4BD81.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#467CD5
Tritanopia (blue-blind)
#AC668B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4bd8;
/* rgb */ color: rgb(175, 75, 216);
/* oklch */ color: oklch(60.3% 0.216 314.5);
Tailwind
colors: {
  custom: {
    50: '#cb84e5',
    500: '#af4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #af4bd8;
$custom-light: #cb84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bd8",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 282.553,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.6029,
    "c": 0.2164,
    "h": 314.5
  },
  "luminance": 0.19104
}

Semantic roles & 50–950 ramp

primary
#AF4BD8
secondary
#B3DCA3
accent
#E74071
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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