#AF7FF2#AF7FF2

#AF7FF2 is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.2% C 0.168 H 301.4°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#AF7FF2
RGBrgb(175, 127, 242)
HSLhsl(265, 82%, 72%)
HSVhsv(265, 48%, 95%)
CMYKcmyk(27.7%, 47.5%, 0%, 5.1%)
CIE-LABlab(62.26, 41.37, -51.19)
CIE-LCHlch(62.26, 65.82, 308.95°)
OKLaboklab(69.16% 0.0878 -0.1437)
OKLCHoklch(69.16% 0.168 301.4)
XYZxyz(41.2919, 30.7034, 87.7381)
Luminance0.3070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FF2 #C2F27F
analogous
#7F89F2 #AF7FF2 #E87FF2
triadic
#AF7FF2 #F2AF7F #7FF2AF
tetradic
#AF7FF2 #F27F89 #C2F27F #7FF2E8
square
#AF7FF2 #F27F89 #C2F27F #7FF2E8
split-complementary
#AF7FF2 #F2E87F #89F27F
monochromatic
#6B17E0 #8C47EC #AF7FF2 #D2B7F8 #EEE3FC

Accessibility & contrast

On white

2.94
#AF7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#AF7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FF2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FF2#FFFFFF#000000##000000
##AF7FF21.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C96F6
Deuteranopia (green-blind)
#6896EF
Tritanopia (blue-blind)
#A294AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7ff2;
/* rgb */ color: rgb(175, 127, 242);
/* oklch */ color: oklch(69.2% 0.168 301.4);
Tailwind
colors: {
  custom: {
    50: '#c9a5f7',
    500: '#af7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #af7ff2;
$custom-light: #c9a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ff2",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 265.043,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69159,
    "c": 0.16838,
    "h": 301.4
  },
  "luminance": 0.30704
}

Semantic roles & 50–950 ramp

primary
#AF7FF2
secondary
#E8F4D7
accent
#DE0884
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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