#AF7CF9#AF7CF9

#AF7CF9 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.1% C 0.182 H 300.6°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#AF7CF9
RGBrgb(175, 124, 249)
HSLhsl(264, 91%, 73%)
HSVhsv(264, 50%, 98%)
CMYKcmyk(29.7%, 50.2%, 0%, 2.4%)
CIE-LABlab(61.97, 44.70, -55.50)
CIE-LCHlch(61.97, 71.26, 308.85°)
OKLaboklab(69.07% 0.0923 -0.1563)
OKLCHoklch(69.07% 0.182 300.6)
XYZxyz(41.9817, 30.3686, 93.2541)
Luminance0.3037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CF9 #C6F97C
analogous
#7C87F9 #AF7CF9 #ED7CF9
triadic
#AF7CF9 #F9AF7C #7CF9AF
tetradic
#AF7CF9 #F97C87 #C6F97C #7CF9ED
square
#AF7CF9 #F97C87 #C6F97C #7CF9ED
split-complementary
#AF7CF9 #F9ED7C #87F97C
monochromatic
#680BF0 #8B41F6 #AF7CF9 #D3B7FC #EDE2FE

Accessibility & contrast

On white

2.97
#AF7CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#AF7CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7CF9
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CF9#FFFFFF#000000##000000
##AF7CF91.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5295FD
Deuteranopia (green-blind)
#5F95F6
Tritanopia (blue-blind)
#A093AF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7cf9;
/* rgb */ color: rgb(175, 124, 249);
/* oklch */ color: oklch(69.1% 0.182 300.6);
Tailwind
colors: {
  custom: {
    50: '#caa3fc',
    500: '#af7cf9',
    950: '#000000',
  },
}
SCSS
$custom: #af7cf9;
$custom-light: #caa3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cf9",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 264.48,
    "s": 91.241,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69065,
    "c": 0.18154,
    "h": 300.6
  },
  "luminance": 0.30369
}

Semantic roles & 50–950 ramp

primary
#AF7CF9
secondary
#E8F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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