#AF7FEF#AF7FEF

#AF7FEF is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.0% C 0.165 H 302.1°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#AF7FEF
RGBrgb(175, 127, 239)
HSLhsl(266, 78%, 72%)
HSVhsv(266, 47%, 94%)
CMYKcmyk(26.8%, 46.9%, 0%, 6.3%)
CIE-LABlab(62.10, 40.66, -49.77)
CIE-LCHlch(62.10, 64.27, 309.25°)
OKLaboklab(69% 0.0874 -0.1396)
OKLCHoklch(69% 0.165 302.1)
XYZxyz(40.8451, 30.5247, 85.3846)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FEF #BFEF7F
analogous
#7F87EF #AF7FEF #E77FEF
triadic
#AF7FEF #EFAF7F #7FEFAF
tetradic
#AF7FEF #EF7F87 #BFEF7F #7FEFE7
square
#AF7FEF #EF7F87 #BFEF7F #7FEFE7
split-complementary
#AF7FEF #EFE77F #87EF7F
monochromatic
#6C1BD9 #8D49E8 #AF7FEF #D1B5F6 #EEE4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF7FEF#FFFFFF#000000##000000
##AF7FEF1.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E95F3
Deuteranopia (green-blind)
#6A96EC
Tritanopia (blue-blind)
#A393AC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7fef;
/* rgb */ color: rgb(175, 127, 239);
/* oklch */ color: oklch(69.0% 0.165 302.1);
Tailwind
colors: {
  custom: {
    50: '#c9a5f5',
    500: '#af7fef',
    950: '#000000',
  },
}
SCSS
$custom: #af7fef;
$custom-light: #c9a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fef",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 265.714,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68996,
    "c": 0.16469,
    "h": 302.1
  },
  "luminance": 0.30525
}

Semantic roles & 50–950 ramp

primary
#AF7FEF
secondary
#E7F3D7
accent
#DA0B82
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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