#AF7BF9#AF7BF9

#AF7BF9 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.9% C 0.183 H 300.8°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF9
RGBrgb(175, 123, 249)
HSLhsl(265, 91%, 73%)
HSVhsv(265, 51%, 98%)
CMYKcmyk(29.7%, 50.6%, 0%, 2.4%)
CIE-LABlab(61.76, 45.25, -55.84)
CIE-LCHlch(61.76, 71.87, 309.02°)
OKLaboklab(68.91% 0.0936 -0.1573)
OKLCHoklch(68.91% 0.183 300.8)
XYZxyz(41.8571, 30.1192, 93.2126)
Luminance0.3012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF9 #C5F97B
analogous
#7B86F9 #AF7BF9 #EE7BF9
triadic
#AF7BF9 #F9AF7B #7BF9AF
tetradic
#AF7BF9 #F97B86 #C5F97B #7BF9EE
square
#AF7BF9 #F97B86 #C5F97B #7BF9EE
split-complementary
#AF7BF9 #F9EE7B #86F97B
monochromatic
#690BEF #8C40F6 #AF7BF9 #D2B6FC #EDE2FE

Accessibility & contrast

On white

2.99
#AF7BF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#AF7BF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BF9
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF9#FFFFFF#000000##000000
##AF7BF91.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5095FD
Deuteranopia (green-blind)
#5E94F6
Tritanopia (blue-blind)
#A093AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bf9;
/* rgb */ color: rgb(175, 123, 249);
/* oklch */ color: oklch(68.9% 0.183 300.8);
Tailwind
colors: {
  custom: {
    50: '#caa2fc',
    500: '#af7bf9',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf9;
$custom-light: #caa2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf9",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 249
  },
  "hsl": {
    "h": 264.762,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68906,
    "c": 0.18304,
    "h": 300.8
  },
  "luminance": 0.30119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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