#AF7CFC#AF7CFC

#AF7CFC is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.2% C 0.185 H 300.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AF7CFC
RGBrgb(175, 124, 252)
HSLhsl(264, 96%, 74%)
HSVhsv(264, 51%, 99%)
CMYKcmyk(30.6%, 50.8%, 0%, 1.2%)
CIE-LABlab(62.13, 45.43, -56.89)
CIE-LCHlch(62.13, 72.80, 308.61°)
OKLaboklab(69.24% 0.0926 -0.1604)
OKLCHoklch(69.24% 0.185 300)
XYZxyz(42.4534, 30.5573, 95.7381)
Luminance0.3056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7CFC #C9FC7C
analogous
#7C89FC #AF7CFC #EF7CFC
triadic
#AF7CFC #FCAF7C #7CFCAF
tetradic
#AF7CFC #FC7C89 #C9FC7C #7CFCEF
square
#AF7CFC #FC7C89 #C9FC7C #7CFCEF
split-complementary
#AF7CFC #FCEF7C #89FC7C
monochromatic
#6606F8 #8A40FB #AF7CFC #D4B8FD #EDE1FE

Accessibility & contrast

On white

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

On black

7.11
#AF7CFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7CFC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7CFC#FFFFFF#000000##000000
##AF7CFC1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F96FF
Deuteranopia (green-blind)
#5D95F9
Tritanopia (blue-blind)
#9F94B1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7cfc;
/* rgb */ color: rgb(175, 124, 252);
/* oklch */ color: oklch(69.2% 0.185 300.0);
Tailwind
colors: {
  custom: {
    50: '#caa3fe',
    500: '#af7cfc',
    950: '#000000',
  },
}
SCSS
$custom: #af7cfc;
$custom-light: #caa3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af7cfc",
  "rgb": {
    "r": 175,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 263.906,
    "s": 95.522,
    "l": 73.725
  },
  "oklch": {
    "l": 0.69237,
    "c": 0.18518,
    "h": 300
  },
  "luminance": 0.30558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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