#C398FC#C398FC

#C398FC is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.8% C 0.146 H 302.9°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#C398FC
RGBrgb(195, 152, 252)
HSLhsl(266, 94%, 79%)
HSVhsv(266, 40%, 99%)
CMYKcmyk(22.6%, 39.7%, 0%, 1.2%)
CIE-LABlab(70.24, 35.39, -43.96)
CIE-LCHlch(70.24, 56.43, 308.83°)
OKLaboklab(75.76% 0.0791 -0.1223)
OKLCHoklch(75.76% 0.146 302.9)
XYZxyz(51.3008, 41.0869, 97.3045)
Luminance0.4109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C398FC #D1FC98
analogous
#989FFC #C398FC #F598FC
triadic
#C398FC #FCC398 #98FCC3
tetradic
#C398FC #FC989F #D1FC98 #98FCF5
square
#C398FC #FC989F #D1FC98 #98FCF5
split-complementary
#C398FC #FCF598 #9FFC98
monochromatic
#7E21F9 #A05DFA #C398FC #E6D3FE #EEE1FE

Accessibility & contrast

On white

2.28
#C398FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#C398FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C398FC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C398FC#FFFFFF#000000##000000
##C398FC1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ABFF
Deuteranopia (green-blind)
#89ACF9
Tritanopia (blue-blind)
#B9A8BE
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c398fc;
/* rgb */ color: rgb(195, 152, 252);
/* oklch */ color: oklch(75.8% 0.146 302.9);
Tailwind
colors: {
  custom: {
    50: '#d7b7fd',
    500: '#c398fc',
    950: '#000000',
  },
}
SCSS
$custom: #c398fc;
$custom-light: #d7b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c398fc",
  "rgb": {
    "r": 195,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 265.8,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.75761,
    "c": 0.14569,
    "h": 302.9
  },
  "luminance": 0.41087
}

Semantic roles & 50–950 ramp

primary
#C398FC
secondary
#E8F6D5
accent
#E60083
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #C398FC

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

Preview Lab → · Contrast checker → · Palette generator →

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