#AF7FCB#AF7FCB

#AF7FCB is a light, vivid violet. Relative luminance 0.286; OKLCH L 67.2% C 0.121 H 312.4°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#AF7FCB
RGBrgb(175, 127, 203)
HSLhsl(278, 42%, 65%)
HSVhsv(278, 37%, 80%)
CMYKcmyk(13.8%, 37.4%, 0%, 20.4%)
CIE-LABlab(60.43, 32.47, -32.29)
CIE-LCHlch(60.43, 45.79, 315.16°)
OKLaboklab(67.19% 0.0812 -0.089)
OKLCHoklch(67.19% 0.121 312.4)
XYZxyz(36.0462, 28.6051, 60.1108)
Luminance0.2861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7FCB #9BCB7F
analogous
#897FCB #AF7FCB #CB7FC1
triadic
#AF7FCB #CBAF7F #7FCBAF
tetradic
#AF7FCB #CB897F #9BCB7F #7FC1CB
square
#AF7FCB #CB897F #9BCB7F #7FC1CB
split-complementary
#AF7FCB #C1CB7F #7FCB89
monochromatic
#733C94 #9453B9 #AF7FCB #CAABDD #E5D6EE

Accessibility & contrast

On white

3.12
#AF7FCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#AF7FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7FCB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7FCB#FFFFFF#000000##000000
##AF7FCB1.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#718FCE
Deuteranopia (green-blind)
#7D93C9
Tritanopia (blue-blind)
#AC899C
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af7fcb;
/* rgb */ color: rgb(175, 127, 203);
/* oklch */ color: oklch(67.2% 0.121 312.4);
Tailwind
colors: {
  custom: {
    50: '#c8a5db',
    500: '#af7fcb',
    950: '#000000',
  },
}
SCSS
$custom: #af7fcb;
$custom-light: #c8a5db;
$custom-dark: #000000;
JSON
{
  "hex": "#af7fcb",
  "rgb": {
    "r": 175,
    "g": 127,
    "b": 203
  },
  "hsl": {
    "h": 277.895,
    "s": 42.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67191,
    "c": 0.12052,
    "h": 312.4
  },
  "luminance": 0.28605
}

Semantic roles & 50–950 ramp

primary
#AF7FCB
secondary
#CFE0C6
accent
#B53061
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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