#AF4FD8#AF4FD8

#AF4FD8 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.8% C 0.211 H 314.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF4FD8
RGBrgb(175, 79, 216)
HSLhsl(282, 64%, 58%)
HSVhsv(282, 63%, 85%)
CMYKcmyk(19%, 63.4%, 0%, 15.3%)
CIE-LABlab(51.46, 60.19, -53.82)
CIE-LCHlch(51.46, 80.75, 318.20°)
OKLaboklab(60.76% 0.1473 -0.1512)
OKLCHoklch(60.76% 0.211 314.2)
XYZxyz(32.8678, 19.6648, 67.0167)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FD8 #78D84F
analogous
#6A4FD8 #AF4FD8 #D84FBC
triadic
#AF4FD8 #D8AF4F #4FD8AF
tetradic
#AF4FD8 #D86A4F #78D84F #4FBCD8
square
#AF4FD8 #D86A4F #78D84F #4FBCD8
split-complementary
#AF4FD8 #BCD84F #4FD86A
monochromatic
#6C1F8D #932ABF #AF4FD8 #C681E3 #DDB3EE

Accessibility & contrast

On white

4.26
#AF4FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF4FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FD8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FD8#FFFFFF#000000##000000
##AF4FD81.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1475DC
Deuteranopia (green-blind)
#4A7DD5
Tritanopia (blue-blind)
#AB698D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4fd8;
/* rgb */ color: rgb(175, 79, 216);
/* oklch */ color: oklch(60.8% 0.211 314.2);
Tailwind
colors: {
  custom: {
    50: '#ca86e5',
    500: '#af4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #af4fd8;
$custom-light: #ca86e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fd8",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 282.044,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60756,
    "c": 0.21108,
    "h": 314.2
  },
  "luminance": 0.19664
}

Semantic roles & 50–950 ramp

primary
#AF4FD8
secondary
#B6DDA6
accent
#E74173
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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