#C898FE#C898FE

#C898FE is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.149 H 304.8°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#C898FE
RGBrgb(200, 152, 254)
HSLhsl(268, 98%, 80%)
HSVhsv(268, 40%, 100%)
CMYKcmyk(21.3%, 40.2%, 0%, 0.4%)
CIE-LABlab(70.80, 37.25, -44.14)
CIE-LCHlch(70.80, 57.75, 310.16°)
OKLaboklab(76.32% 0.0853 -0.1227)
OKLCHoklch(76.32% 0.149 304.8)
XYZxyz(52.9334, 41.8918, 99.0440)
Luminance0.4189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C898FE #CEFE98
analogous
#989BFE #C898FE #FB98FE
triadic
#C898FE #FEC898 #98FEC8
tetradic
#C898FE #FE989B #CEFE98 #98FEFB
square
#C898FE #FE989B #CEFE98 #98FEFB
split-complementary
#C898FE #FEFB98 #9BFE98
monochromatic
#871FFD #A85BFD #C898FE #E8D5FF #EFE1FF

Accessibility & contrast

On white

2.24
#C898FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#C898FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C898FE
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C898FE#FFFFFF#000000##000000
##C898FE1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8BADFB
Tritanopia (blue-blind)
#BFA8BF
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c898fe;
/* rgb */ color: rgb(200, 152, 254);
/* oklch */ color: oklch(76.3% 0.149 304.8);
Tailwind
colors: {
  custom: {
    50: '#dab7ff',
    500: '#c898fe',
    950: '#000000',
  },
}
SCSS
$custom: #c898fe;
$custom-light: #dab7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c898fe",
  "rgb": {
    "r": 200,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 268.235,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76323,
    "c": 0.14945,
    "h": 304.8
  },
  "luminance": 0.41892
}

Semantic roles & 50–950 ramp

primary
#C898FE
secondary
#E7F7D4
accent
#E6007A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C898FE

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

Preview Lab → · Contrast checker → · Palette generator →

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