#AF4CF7#AF4CF7

#AF4CF7 is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.5% C 0.245 H 307.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF4CF7
RGBrgb(175, 76, 247)
HSLhsl(275, 91%, 63%)
HSVhsv(275, 69%, 97%)
CMYKcmyk(29.1%, 69.2%, 0%, 3.1%)
CIE-LABlab(52.95, 68.05, -68.88)
CIE-LCHlch(52.95, 96.82, 314.66°)
OKLaboklab(62.45% 0.1479 -0.1954)
OKLCHoklch(62.45% 0.245 307.1)
XYZxyz(37.0486, 20.9987, 90.0791)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CF7 #94F74C
analogous
#594CF7 #AF4CF7 #F74CE9
triadic
#AF4CF7 #F7AF4C #4CF7AF
tetradic
#AF4CF7 #F7594C #94F74C #4CE9F7
square
#AF4CF7 #F7594C #94F74C #4CE9F7
split-complementary
#AF4CF7 #E9F74C #4CF759
monochromatic
#7309C0 #9511F4 #AF4CF7 #C987FA #E3C1FC

Accessibility & contrast

On white

4.04
#AF4CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AF4CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CF7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CF7#FFFFFF#000000##000000
##AF4CF71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFC
Deuteranopia (green-blind)
#157FF3
Tritanopia (blue-blind)
#A3739C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4cf7;
/* rgb */ color: rgb(175, 76, 247);
/* oklch */ color: oklch(62.5% 0.245 307.1);
Tailwind
colors: {
  custom: {
    50: '#cc85fb',
    500: '#af4cf7',
    950: '#000000',
  },
}
SCSS
$custom: #af4cf7;
$custom-light: #cc85fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cf7",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 247
  },
  "hsl": {
    "h": 274.737,
    "s": 91.444,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62452,
    "c": 0.24505,
    "h": 307.1
  },
  "luminance": 0.20998
}

Semantic roles & 50–950 ramp

primary
#AF4CF7
secondary
#CBEEB1
accent
#E60061
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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