#AF4FCB#AF4FCB

#AF4FCB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 60.0% C 0.198 H 317.9°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF4FCB
RGBrgb(175, 79, 203)
HSLhsl(286, 54%, 55%)
HSVhsv(286, 61%, 80%)
CMYKcmyk(13.8%, 61.1%, 0%, 20.4%)
CIE-LABlab(50.71, 57.57, -47.59)
CIE-LCHlch(50.71, 74.69, 320.42°)
OKLaboklab(59.98% 0.1473 -0.133)
OKLCHoklch(59.98% 0.198 317.9)
XYZxyz(31.2532, 19.0190, 58.5131)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FCB #6BCB4F
analogous
#714FCB #AF4FCB #CB4FA9
triadic
#AF4FCB #CBAF4F #4FCBAF
tetradic
#AF4FCB #CB714F #6BCB4F #4FA9CB
square
#AF4FCB #CB714F #6BCB4F #4FA9CB
split-complementary
#AF4FCB #A9CB4F #4FCB71
monochromatic
#68247B #8F32AA #AF4FCB #C47ED9 #DAADE7

Accessibility & contrast

On white

4.37
#AF4FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AF4FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FCB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FCB#FFFFFF#000000##000000
##AF4FCB1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CF
Deuteranopia (green-blind)
#547CC8
Tritanopia (blue-blind)
#AE6486
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af4fcb;
/* rgb */ color: rgb(175, 79, 203);
/* oklch */ color: oklch(60.0% 0.198 317.9);
Tailwind
colors: {
  custom: {
    50: '#ca86db',
    500: '#af4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #af4fcb;
$custom-light: #ca86db;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fcb",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 286.452,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59975,
    "c": 0.19848,
    "h": 317.9
  },
  "luminance": 0.19018
}

Semantic roles & 50–950 ramp

primary
#AF4FCB
secondary
#ADD5A1
accent
#DE4A6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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