#C398FA#C398FA

#C398FA is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.7% C 0.143 H 303.4°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#C398FA
RGBrgb(195, 152, 250)
HSLhsl(266, 91%, 79%)
HSVhsv(266, 39%, 98%)
CMYKcmyk(22%, 39.2%, 0%, 2%)
CIE-LABlab(70.15, 34.93, -43.01)
CIE-LCHlch(70.15, 55.41, 309.08°)
OKLaboklab(75.67% 0.0787 -0.1196)
OKLCHoklch(75.67% 0.143 303.4)
XYZxyz(50.9856, 40.9608, 95.6441)
Luminance0.4096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C398FA #CFFA98
analogous
#989EFA #C398FA #F498FA
triadic
#C398FA #FAC398 #98FAC3
tetradic
#C398FA #FA989E #CFFA98 #98FAF4
square
#C398FA #FA989E #CFFA98 #98FAF4
split-complementary
#C398FA #FAF498 #9EFA98
monochromatic
#7F23F4 #A15EF7 #C398FA #E5D2FD #EEE2FE

Accessibility & contrast

On white

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

On black

9.19
#C398FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C398FA
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C398FA#FFFFFF#000000##000000
##C398FA1.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81AAFE
Deuteranopia (green-blind)
#8AABF7
Tritanopia (blue-blind)
#BAA8BD
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c398fa;
/* rgb */ color: rgb(195, 152, 250);
/* oklch */ color: oklch(75.7% 0.143 303.4);
Tailwind
colors: {
  custom: {
    50: '#d7b7fc',
    500: '#c398fa',
    950: '#000000',
  },
}
SCSS
$custom: #c398fa;
$custom-light: #d7b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c398fa",
  "rgb": {
    "r": 195,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 266.327,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.75665,
    "c": 0.14318,
    "h": 303.4
  },
  "luminance": 0.40961
}

Semantic roles & 50–950 ramp

primary
#C398FA
secondary
#E7F6D5
accent
#E60081
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #C398FA

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

Preview Lab → · Contrast checker → · Palette generator →

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