#C7A1F8#C7A1F8

#C7A1F8 is a light, vivid violet. Relative luminance 0.444; OKLCH L 77.5% C 0.127 H 303.6°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#C7A1F8
RGBrgb(199, 161, 248)
HSLhsl(266, 86%, 80%)
HSVhsv(266, 35%, 97%)
CMYKcmyk(19.8%, 35.1%, 0%, 2.7%)
CIE-LABlab(72.50, 30.69, -38.22)
CIE-LCHlch(72.50, 49.02, 308.76°)
OKLaboklab(77.51% 0.0704 -0.1058)
OKLCHoklch(77.51% 0.127 303.6)
XYZxyz(53.2378, 44.4093, 94.5559)
Luminance0.4441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A1F8 #D2F8A1
analogous
#A1A6F8 #C7A1F8 #F3A1F8
triadic
#C7A1F8 #F8C7A1 #A1F8C7
tetradic
#C7A1F8 #F8A1A6 #D2F8A1 #A1F8F3
square
#C7A1F8 #F8A1A6 #D2F8A1 #A1F8F3
split-complementary
#C7A1F8 #F8F3A1 #A6F8A1
monochromatic
#832FF0 #A568F4 #C7A1F8 #E9DAFC #EEE3FD

Accessibility & contrast

On white

2.13
#C7A1F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#C7A1F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A1F8
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A1F8#FFFFFF#000000##000000
##C7A1F81.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB1FB
Deuteranopia (green-blind)
#95B2F6
Tritanopia (blue-blind)
#BFAEC1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c7a1f8;
/* rgb */ color: rgb(199, 161, 248);
/* oklch */ color: oklch(77.5% 0.127 303.6);
Tailwind
colors: {
  custom: {
    50: '#d9bdfb',
    500: '#c7a1f8',
    950: '#000000',
  },
}
SCSS
$custom: #c7a1f8;
$custom-light: #d9bdfb;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a1f8",
  "rgb": {
    "r": 199,
    "g": 161,
    "b": 248
  },
  "hsl": {
    "h": 266.207,
    "s": 86.139,
    "l": 80.196
  },
  "oklch": {
    "l": 0.7751,
    "c": 0.12706,
    "h": 303.6
  },
  "luminance": 0.44409
}

Semantic roles & 50–950 ramp

primary
#C7A1F8
secondary
#E7F5D6
accent
#E30381
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #C7A1F8

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

Preview Lab → · Contrast checker → · Palette generator →

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