#AF7BEC#AF7BEC

#AF7BEC is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.2% C 0.167 H 303.5°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#AF7BEC
RGBrgb(175, 123, 236)
HSLhsl(268, 75%, 70%)
HSVhsv(268, 48%, 93%)
CMYKcmyk(25.8%, 47.9%, 0%, 7.5%)
CIE-LABlab(61.08, 42.15, -49.73)
CIE-LCHlch(61.08, 65.19, 310.28°)
OKLaboklab(68.18% 0.0924 -0.1395)
OKLCHoklch(68.18% 0.167 303.5)
XYZxyz(39.8992, 29.3361, 82.9011)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BEC #B8EC7B
analogous
#7B7FEC #AF7BEC #E87BEC
triadic
#AF7BEC #ECAF7B #7BECAF
tetradic
#AF7BEC #EC7B7F #B8EC7B #7BECE8
square
#AF7BEC #EC7B7F #B8EC7B #7BECE8
split-complementary
#AF7BEC #ECE87B #7FEC7B
monochromatic
#6F1ECF #8F46E4 #AF7BEC #CFB0F4 #EFE4FB

Accessibility & contrast

On white

3.06
#AF7BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#AF7BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BEC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BEC#FFFFFF#000000##000000
##AF7BEC1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A92F0
Deuteranopia (green-blind)
#6793E9
Tritanopia (blue-blind)
#A48FA8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7bec;
/* rgb */ color: rgb(175, 123, 236);
/* oklch */ color: oklch(68.2% 0.167 303.5);
Tailwind
colors: {
  custom: {
    50: '#c9a2f2',
    500: '#af7bec',
    950: '#000000',
  },
}
SCSS
$custom: #af7bec;
$custom-light: #c9a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bec",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 267.611,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6818,
    "c": 0.16729,
    "h": 303.5
  },
  "luminance": 0.29336
}

Semantic roles & 50–950 ramp

primary
#AF7BEC
secondary
#E3F1D2
accent
#D70F7B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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