#AF7CFD#AF7CFD

#AF7CFD is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.3% C 0.186 H 299.8°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#AF7CFD
RGBrgb(175, 124, 253)
HSLhsl(264, 97%, 74%)
HSVhsv(264, 51%, 99%)
CMYKcmyk(30.8%, 51%, 0%, 0.8%)
CIE-LABlab(62.19, 45.67, -57.36)
CIE-LCHlch(62.19, 73.32, 308.53°)
OKLaboklab(69.3% 0.0926 -0.1617)
OKLCHoklch(69.3% 0.186 299.8)
XYZxyz(42.6123, 30.6208, 96.5749)
Luminance0.3062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CFD #CAFD7C
analogous
#7C8AFD #AF7CFD #F07CFD
triadic
#AF7CFD #FDAF7C #7CFDAF
tetradic
#AF7CFD #FD7C8A #CAFD7C #7CFDF0
square
#AF7CFD #FD7C8A #CAFD7C #7CFDF0
split-complementary
#AF7CFD #FDF07C #8AFD7C
monochromatic
#6504FB #8A40FC #AF7CFD #D4B8FE #EDE1FF

Accessibility & contrast

On white

2.95
#AF7CFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#AF7CFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7CFD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CFD#FFFFFF#000000##000000
##AF7CFD1.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#5C95FA
Tritanopia (blue-blind)
#9F95B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7cfd;
/* rgb */ color: rgb(175, 124, 253);
/* oklch */ color: oklch(69.3% 0.186 299.8);
Tailwind
colors: {
  custom: {
    50: '#caa3ff',
    500: '#af7cfd',
    950: '#000000',
  },
}
SCSS
$custom: #af7cfd;
$custom-light: #caa3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cfd",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 253
  },
  "hsl": {
    "h": 263.721,
    "s": 96.992,
    "l": 73.922
  },
  "oklch": {
    "l": 0.69295,
    "c": 0.18639,
    "h": 299.8
  },
  "luminance": 0.30621
}

Semantic roles & 50–950 ramp

primary
#AF7CFD
secondary
#E9F7D4
accent
#E6008B
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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