#C98AFA#C98AFA

#C98AFA is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.9% C 0.168 H 308.8°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#C98AFA
RGBrgb(201, 138, 250)
HSLhsl(274, 92%, 76%)
HSVhsv(274, 45%, 98%)
CMYKcmyk(19.6%, 44.8%, 0%, 2%)
CIE-LABlab(67.65, 44.22, -46.89)
CIE-LCHlch(67.65, 64.46, 313.32°)
OKLaboklab(73.92% 0.1049 -0.1306)
OKLCHoklch(73.92% 0.168 308.8)
XYZxyz(50.4279, 37.4972, 95.0051)
Luminance0.3750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98AFA #BBFA8A
analogous
#918AFA #C98AFA #FA8AF3
triadic
#C98AFA #FAC98A #8AFAC9
tetradic
#C98AFA #FA918A #BBFA8A #8AF3FA
square
#C98AFA #FA918A #BBFA8A #8AF3FA
split-complementary
#C98AFA #F3FA8A #8AFA91
monochromatic
#9315F5 #AE4FF7 #C98AFA #E4C5FD #F1E2FE

Accessibility & contrast

On white

2.47
#C98AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#C98AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98AFA
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98AFA#FFFFFF#000000##000000
##C98AFA1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A2FE
Deuteranopia (green-blind)
#80A6F7
Tritanopia (blue-blind)
#C39CB6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c98afa;
/* rgb */ color: rgb(201, 138, 250);
/* oklch */ color: oklch(73.9% 0.168 308.8);
Tailwind
colors: {
  custom: {
    50: '#dbadfc',
    500: '#c98afa',
    950: '#000000',
  },
}
SCSS
$custom: #c98afa;
$custom-light: #dbadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c98afa",
  "rgb": {
    "r": 201,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 273.75,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7392,
    "c": 0.16756,
    "h": 308.8
  },
  "luminance": 0.37497
}

Semantic roles & 50–950 ramp

primary
#C98AFA
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C98AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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