#AF7BF2#AF7BF2

#AF7BF2 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.5% C 0.175 H 302.2°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF2
RGBrgb(175, 123, 242)
HSLhsl(266, 82%, 72%)
HSVhsv(266, 49%, 95%)
CMYKcmyk(27.7%, 49.2%, 0%, 5.1%)
CIE-LABlab(61.39, 43.57, -52.57)
CIE-LCHlch(61.39, 68.28, 309.65°)
OKLaboklab(68.51% 0.093 -0.1477)
OKLCHoklch(68.51% 0.175 302.2)
XYZxyz(40.7856, 29.6906, 87.5694)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF2 #BEF27B
analogous
#7B83F2 #AF7BF2 #EA7BF2
triadic
#AF7BF2 #F2AF7B #7BF2AF
tetradic
#AF7BF2 #F27B83 #BEF27B #7BF2EA
square
#AF7BF2 #F27B83 #BEF27B #7BF2EA
split-complementary
#AF7BF2 #F2EA7B #83F27B
monochromatic
#6D16DD #8D43ED #AF7BF2 #D1B3F7 #EEE3FC

Accessibility & contrast

On white

3.03
#AF7BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#AF7BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BF2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF2#FFFFFF#000000##000000
##AF7BF21.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#6394EF
Tritanopia (blue-blind)
#A391AB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7bf2;
/* rgb */ color: rgb(175, 123, 242);
/* oklch */ color: oklch(68.5% 0.175 302.2);
Tailwind
colors: {
  custom: {
    50: '#caa2f7',
    500: '#af7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf2;
$custom-light: #caa2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf2",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 266.218,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6851,
    "c": 0.17457,
    "h": 302.2
  },
  "luminance": 0.29691
}

Semantic roles & 50–950 ramp

primary
#AF7BF2
secondary
#E6F4D5
accent
#DE0780
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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