#AF7BEA#AF7BEA

#AF7BEA is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.1% C 0.165 H 304.0°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#AF7BEA
RGBrgb(175, 123, 234)
HSLhsl(268, 73%, 70%)
HSVhsv(268, 47%, 92%)
CMYKcmyk(25.2%, 47.4%, 0%, 8.2%)
CIE-LABlab(60.98, 41.68, -48.79)
CIE-LCHlch(60.98, 64.17, 310.51°)
OKLaboklab(68.07% 0.0922 -0.1367)
OKLCHoklch(68.07% 0.165 304)
XYZxyz(39.6102, 29.2205, 81.3793)
Luminance0.2922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BEA #B6EA7B
analogous
#7B7FEA #AF7BEA #E67BEA
triadic
#AF7BEA #EAAF7B #7BEAAF
tetradic
#AF7BEA #EA7B7F #B6EA7B #7BEAE6
square
#AF7BEA #EA7B7F #B6EA7B #7BEAE6
split-complementary
#AF7BEA #EAE67B #7FEA7B
monochromatic
#7020CA #8F46E2 #AF7BEA #CFB0F2 #EFE5FB

Accessibility & contrast

On white

3.07
#AF7BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#AF7BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BEA
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BEA#FFFFFF#000000##000000
##AF7BEA1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B92EE
Deuteranopia (green-blind)
#6993E7
Tritanopia (blue-blind)
#A58EA8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7bea;
/* rgb */ color: rgb(175, 123, 234);
/* oklch */ color: oklch(68.1% 0.165 304.0);
Tailwind
colors: {
  custom: {
    50: '#c9a2f1',
    500: '#af7bea',
    950: '#000000',
  },
}
SCSS
$custom: #af7bea;
$custom-light: #c9a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bea",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 268.108,
    "s": 72.549,
    "l": 70
  },
  "oklch": {
    "l": 0.68071,
    "c": 0.16486,
    "h": 304
  },
  "luminance": 0.2922
}

Semantic roles & 50–950 ramp

primary
#AF7BEA
secondary
#E1F0D1
accent
#D51179
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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