#AF7BCB#AF7BCB

#AF7BCB is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.5% C 0.127 H 313.1°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#AF7BCB
RGBrgb(175, 123, 203)
HSLhsl(279, 43%, 64%)
HSVhsv(279, 39%, 80%)
CMYKcmyk(13.8%, 39.4%, 0%, 20.4%)
CIE-LABlab(59.52, 34.70, -33.71)
CIE-LCHlch(59.52, 48.38, 315.83°)
OKLaboklab(66.5% 0.0871 -0.0931)
OKLCHoklch(66.5% 0.127 313.1)
XYZxyz(35.5399, 27.5924, 59.9420)
Luminance0.2759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BCB #97CB7B
analogous
#877BCB #AF7BCB #CB7BBF
triadic
#AF7BCB #CBAF7B #7BCBAF
tetradic
#AF7BCB #CB877B #97CB7B #7BBFCB
square
#AF7BCB #CB877B #97CB7B #7BBFCB
split-complementary
#AF7BCB #BFCB7B #7BCB87
monochromatic
#733A92 #944FBA #AF7BCB #CAA7DC #E4D3EE

Accessibility & contrast

On white

3.22
#AF7BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#AF7BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BCB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BCB#FFFFFF#000000##000000
##AF7BCB1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCE
Deuteranopia (green-blind)
#7991C9
Tritanopia (blue-blind)
#AD8699
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af7bcb;
/* rgb */ color: rgb(175, 123, 203);
/* oklch */ color: oklch(66.5% 0.127 313.1);
Tailwind
colors: {
  custom: {
    50: '#c8a2db',
    500: '#af7bcb',
    950: '#000000',
  },
}
SCSS
$custom: #af7bcb;
$custom-light: #c8a2db;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bcb",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 203
  },
  "hsl": {
    "h": 279,
    "s": 43.478,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66501,
    "c": 0.12748,
    "h": 313.1
  },
  "luminance": 0.27592
}

Semantic roles & 50–950 ramp

primary
#AF7BCB
secondary
#CDDFC3
accent
#B72F5E
background
#FCFAFD
surface
#F8F3FB
border
#D1CDD4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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