#AF7FEB#AF7FEB

#AF7FEB is a light, vivid violet. Relative luminance 0.303; OKLCH L 68.8% C 0.160 H 303.0°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#AF7FEB
RGBrgb(175, 127, 235)
HSLhsl(267, 73%, 71%)
HSVhsv(267, 46%, 92%)
CMYKcmyk(25.5%, 46%, 0%, 7.8%)
CIE-LABlab(61.90, 39.71, -47.87)
CIE-LCHlch(61.90, 62.20, 309.68°)
OKLaboklab(68.78% 0.0869 -0.134)
OKLCHoklch(68.78% 0.16 303)
XYZxyz(40.2607, 30.2909, 82.3068)
Luminance0.3029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FEB #BBEB7F
analogous
#7F85EB #AF7FEB #E57FEB
triadic
#AF7FEB #EBAF7F #7FEBAF
tetradic
#AF7FEB #EB7F85 #BBEB7F #7FEBE5
square
#AF7FEB #EB7F85 #BBEB7F #7FEBE5
split-complementary
#AF7FEB #EBE57F #85EB7F
monochromatic
#6E20CF #8E4AE3 #AF7FEB #D0B4F3 #EEE5FB

Accessibility & contrast

On white

2.98
#AF7FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#AF7FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7FEB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FEB#FFFFFF#000000##000000
##AF7FEB1.002.987.067.06
#FFFFFF2.981.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195EF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#A492AA
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af7feb;
/* rgb */ color: rgb(175, 127, 235);
/* oklch */ color: oklch(68.8% 0.160 303.0);
Tailwind
colors: {
  custom: {
    50: '#c9a5f2',
    500: '#af7feb',
    950: '#000000',
  },
}
SCSS
$custom: #af7feb;
$custom-light: #c9a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7feb",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 266.667,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68781,
    "c": 0.15975,
    "h": 303
  },
  "luminance": 0.30291
}

Semantic roles & 50–950 ramp

primary
#AF7FEB
secondary
#E4F1D5
accent
#D5107E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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