#AF4CFA#AF4CFA

#AF4CFA is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.7% C 0.248 H 306.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AF4CFA
RGBrgb(175, 76, 250)
HSLhsl(274, 95%, 64%)
HSVhsv(274, 70%, 98%)
CMYKcmyk(30%, 69.6%, 0%, 2%)
CIE-LABlab(53.15, 68.70, -70.22)
CIE-LCHlch(53.15, 98.24, 314.37°)
OKLaboklab(62.66% 0.1475 -0.1993)
OKLCHoklch(62.66% 0.248 306.5)
XYZxyz(37.5152, 21.1854, 92.5368)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CFA #97FA4C
analogous
#584CFA #AF4CFA #FA4CEE
triadic
#AF4CFA #FAAF4C #4CFAAF
tetradic
#AF4CFA #FA584C #97FA4C #4CEEFA
square
#AF4CFA #FA584C #97FA4C #4CEEFA
split-complementary
#AF4CFA #EEFA4C #4CFA58
monochromatic
#7306C6 #9410F8 #AF4CFA #CA88FC #E4C3FD

Accessibility & contrast

On white

4.01
#AF4CFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AF4CFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CFA
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CFA#FFFFFF#000000##000000
##AF4CFA1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#067FF6
Tritanopia (blue-blind)
#A2749E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af4cfa;
/* rgb */ color: rgb(175, 76, 250);
/* oklch */ color: oklch(62.7% 0.248 306.5);
Tailwind
colors: {
  custom: {
    50: '#cc86fd',
    500: '#af4cfa',
    950: '#000000',
  },
}
SCSS
$custom: #af4cfa;
$custom-light: #cc86fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4cfa",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 250
  },
  "hsl": {
    "h": 274.138,
    "s": 94.565,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62661,
    "c": 0.24796,
    "h": 306.5
  },
  "luminance": 0.21185
}

Semantic roles & 50–950 ramp

primary
#AF4CFA
secondary
#CDEFB2
accent
#E60063
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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