#AF7EF2#AF7EF2

#AF7EF2 is a light, vivid violet. Relative luminance 0.304; OKLCH L 69.0% C 0.170 H 301.6°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#AF7EF2
RGBrgb(175, 126, 242)
HSLhsl(265, 82%, 72%)
HSVhsv(265, 48%, 95%)
CMYKcmyk(27.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(62.04, 41.92, -51.53)
CIE-LCHlch(62.04, 66.43, 309.13°)
OKLaboklab(69% 0.0891 -0.1447)
OKLCHoklch(69% 0.17 301.6)
XYZxyz(41.1634, 30.4464, 87.6953)
Luminance0.3045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EF2 #C1F27E
analogous
#7E87F2 #AF7EF2 #E97EF2
triadic
#AF7EF2 #F2AF7E #7EF2AF
tetradic
#AF7EF2 #F27E87 #C1F27E #7EF2E9
square
#AF7EF2 #F27E87 #C1F27E #7EF2E9
split-complementary
#AF7EF2 #F2E97E #87F27E
monochromatic
#6B16DF #8D46EC #AF7EF2 #D1B6F8 #EEE3FC

Accessibility & contrast

On white

2.96
#AF7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#AF7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7EF2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EF2#FFFFFF#000000##000000
##AF7EF21.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A95F6
Deuteranopia (green-blind)
#6795EF
Tritanopia (blue-blind)
#A293AD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7ef2;
/* rgb */ color: rgb(175, 126, 242);
/* oklch */ color: oklch(69.0% 0.170 301.6);
Tailwind
colors: {
  custom: {
    50: '#c9a4f7',
    500: '#af7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #af7ef2;
$custom-light: #c9a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ef2",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 265.345,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68996,
    "c": 0.16993,
    "h": 301.6
  },
  "luminance": 0.30446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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