#AF4CF2#AF4CF2

#AF4CF2 is a light, highly saturated violet. Relative luminance 0.207; OKLCH L 62.1% C 0.240 H 308.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF4CF2
RGBrgb(175, 76, 242)
HSLhsl(276, 86%, 62%)
HSVhsv(276, 69%, 95%)
CMYKcmyk(27.7%, 68.6%, 0%, 5.1%)
CIE-LABlab(52.61, 66.98, -66.63)
CIE-LCHlch(52.61, 94.47, 315.15°)
OKLaboklab(62.11% 0.1485 -0.1888)
OKLCHoklch(62.11% 0.24 308.2)
XYZxyz(36.2873, 20.6942, 86.0699)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CF2 #8FF24C
analogous
#5C4CF2 #AF4CF2 #F24CE2
triadic
#AF4CF2 #F2AF4C #4CF2AF
tetradic
#AF4CF2 #F25C4C #8FF24C #4CE2F2
square
#AF4CF2 #F25C4C #8FF24C #4CE2F2
split-complementary
#AF4CF2 #E2F24C #4CF25C
monochromatic
#720DB6 #9513EE #AF4CF2 #C885F6 #E2BEFA

Accessibility & contrast

On white

4.09
#AF4CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AF4CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CF2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CF2#FFFFFF#000000##000000
##AF4CF21.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#247FEE
Tritanopia (blue-blind)
#A5719A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4cf2;
/* rgb */ color: rgb(175, 76, 242);
/* oklch */ color: oklch(62.1% 0.240 308.2);
Tailwind
colors: {
  custom: {
    50: '#cc85f7',
    500: '#af4cf2',
    950: '#000000',
  },
}
SCSS
$custom: #af4cf2;
$custom-light: #cc85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cf2",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 242
  },
  "hsl": {
    "h": 275.783,
    "s": 86.458,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62107,
    "c": 0.24021,
    "h": 308.2
  },
  "luminance": 0.20694
}

Semantic roles & 50–950 ramp

primary
#AF4CF2
secondary
#C7EBAF
accent
#E3035D
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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