#AF4FDB#AF4FDB

#AF4FDB is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 60.9% C 0.214 H 313.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF4FDB
RGBrgb(175, 79, 219)
HSLhsl(281, 66%, 58%)
HSVhsv(281, 64%, 86%)
CMYKcmyk(20.1%, 63.9%, 0%, 14.1%)
CIE-LABlab(51.63, 60.81, -55.24)
CIE-LCHlch(51.63, 82.16, 317.75°)
OKLaboklab(60.94% 0.1472 -0.1554)
OKLCHoklch(60.94% 0.214 313.4)
XYZxyz(33.2592, 19.8214, 69.0780)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FDB #7BDB4F
analogous
#694FDB #AF4FDB #DB4FC1
triadic
#AF4FDB #DBAF4F #4FDBAF
tetradic
#AF4FDB #DB694F #7BDB4F #4FC1DB
square
#AF4FDB #DB694F #7BDB4F #4FC1DB
split-complementary
#AF4FDB #C1DB4F #4FDB69
monochromatic
#6D1E92 #9328C5 #AF4FDB #C682E5 #DDB5F0

Accessibility & contrast

On white

4.23
#AF4FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF4FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FDB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FDB#FFFFFF#000000##000000
##AF4FDB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0876DF
Deuteranopia (green-blind)
#477DD8
Tritanopia (blue-blind)
#AB6A8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4fdb;
/* rgb */ color: rgb(175, 79, 219);
/* oklch */ color: oklch(60.9% 0.214 313.4);
Tailwind
colors: {
  custom: {
    50: '#cb86e7',
    500: '#af4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #af4fdb;
$custom-light: #cb86e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fdb",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 281.143,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60942,
    "c": 0.21401,
    "h": 313.4
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#AF4FDB
secondary
#B9DFA7
accent
#E93F74
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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