#AF4FC8#AF4FC8

#AF4FC8 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.8% C 0.196 H 318.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF4FC8
RGBrgb(175, 79, 200)
HSLhsl(288, 52%, 55%)
HSVhsv(288, 61%, 78%)
CMYKcmyk(12.5%, 60.5%, 0%, 21.6%)
CIE-LABlab(50.54, 56.97, -46.13)
CIE-LCHlch(50.54, 73.31, 321.01°)
OKLaboklab(59.8% 0.1473 -0.1287)
OKLCHoklch(59.8% 0.196 318.8)
XYZxyz(30.8991, 18.8774, 56.6485)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FC8 #68C84F
analogous
#724FC8 #AF4FC8 #C84FA5
triadic
#AF4FC8 #C8AF4F #4FC8AF
tetradic
#AF4FC8 #C8724F #68C84F #4FA5C8
square
#AF4FC8 #C8724F #68C84F #4FA5C8
split-complementary
#AF4FC8 #A5C84F #4FC872
monochromatic
#662577 #8E34A6 #AF4FC8 #C47ED7 #D9ACE5

Accessibility & contrast

On white

4.40
#AF4FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AF4FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FC8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FC8#FFFFFF#000000##000000
##AF4FC81.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3072CC
Deuteranopia (green-blind)
#567CC5
Tritanopia (blue-blind)
#AF6384
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af4fc8;
/* rgb */ color: rgb(175, 79, 200);
/* oklch */ color: oklch(59.8% 0.196 318.8);
Tailwind
colors: {
  custom: {
    50: '#ca86d9',
    500: '#af4fc8',
    950: '#000000',
  },
}
SCSS
$custom: #af4fc8;
$custom-light: #ca86d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fc8",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 287.603,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59801,
    "c": 0.1956,
    "h": 318.8
  },
  "luminance": 0.18876
}

Semantic roles & 50–950 ramp

primary
#AF4FC8
secondary
#AAD3A0
accent
#DC4C6A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF4FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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