#AF7BEF#AF7BEF

#AF7BEF is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.3% C 0.171 H 302.8°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#AF7BEF
RGBrgb(175, 123, 239)
HSLhsl(267, 78%, 71%)
HSVhsv(267, 49%, 94%)
CMYKcmyk(26.8%, 48.5%, 0%, 6.3%)
CIE-LABlab(61.23, 42.86, -51.15)
CIE-LCHlch(61.23, 66.73, 309.96°)
OKLaboklab(68.34% 0.0927 -0.1436)
OKLCHoklch(68.34% 0.171 302.8)
XYZxyz(40.3387, 29.5119, 85.2158)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BEF #BBEF7B
analogous
#7B81EF #AF7BEF #E97BEF
triadic
#AF7BEF #EFAF7B #7BEFAF
tetradic
#AF7BEF #EF7B81 #BBEF7B #7BEFE9
square
#AF7BEF #EF7B81 #BBEF7B #7BEFE9
split-complementary
#AF7BEF #EFE97B #81EF7B
monochromatic
#6E1AD6 #8E44E8 #AF7BEF #D0B2F6 #EEE4FC

Accessibility & contrast

On white

3.04
#AF7BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#AF7BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BEF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BEF#FFFFFF#000000##000000
##AF7BEF1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5893F3
Deuteranopia (green-blind)
#6594EC
Tritanopia (blue-blind)
#A390AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7bef;
/* rgb */ color: rgb(175, 123, 239);
/* oklch */ color: oklch(68.3% 0.171 302.8);
Tailwind
colors: {
  custom: {
    50: '#c9a2f5',
    500: '#af7bef',
    950: '#000000',
  },
}
SCSS
$custom: #af7bef;
$custom-light: #c9a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bef",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 266.897,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68344,
    "c": 0.17093,
    "h": 302.8
  },
  "luminance": 0.29512
}

Semantic roles & 50–950 ramp

primary
#AF7BEF
secondary
#E4F2D3
accent
#DB0B7D
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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