#AF4CF0#AF4CF0

#AF4CF0 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 62.0% C 0.238 H 308.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF4CF0
RGBrgb(175, 76, 240)
HSLhsl(276, 85%, 62%)
HSVhsv(276, 68%, 94%)
CMYKcmyk(27.1%, 68.3%, 0%, 5.9%)
CIE-LABlab(52.48, 66.55, -65.72)
CIE-LCHlch(52.48, 93.53, 315.36°)
OKLaboklab(61.97% 0.1488 -0.1861)
OKLCHoklch(61.97% 0.238 308.6)
XYZxyz(35.9886, 20.5747, 84.4966)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CF0 #8DF04C
analogous
#5D4CF0 #AF4CF0 #F04CDF
triadic
#AF4CF0 #F0AF4C #4CF0AF
tetradic
#AF4CF0 #F05D4C #8DF04C #4CDFF0
square
#AF4CF0 #F05D4C #8DF04C #4CDFF0
split-complementary
#AF4CF0 #DFF04C #4CF05D
monochromatic
#720FB3 #9614EB #AF4CF0 #C884F5 #E1BDF9

Accessibility & contrast

On white

4.11
#AF4CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF4CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CF0
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CF0#FFFFFF#000000##000000
##AF4CF01.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F5
Deuteranopia (green-blind)
#287EEC
Tritanopia (blue-blind)
#A57099
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4cf0;
/* rgb */ color: rgb(175, 76, 240);
/* oklch */ color: oklch(62.0% 0.238 308.6);
Tailwind
colors: {
  custom: {
    50: '#cc85f6',
    500: '#af4cf0',
    950: '#000000',
  },
}
SCSS
$custom: #af4cf0;
$custom-light: #cc85f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cf0",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 240
  },
  "hsl": {
    "h": 276.22,
    "s": 84.536,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61971,
    "c": 0.23826,
    "h": 308.6
  },
  "luminance": 0.20574
}

Semantic roles & 50–950 ramp

primary
#AF4CF0
secondary
#C6EAAE
accent
#E1045C
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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