#CA93F8#CA93F8

#CA93F8 is a light, vivid violet. Relative luminance 0.402; OKLCH L 75.4% C 0.151 H 308.2°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#CA93F8
RGBrgb(202, 147, 248)
HSLhsl(273, 88%, 77%)
HSVhsv(273, 41%, 97%)
CMYKcmyk(18.5%, 40.7%, 0%, 2.7%)
CIE-LABlab(69.61, 39.21, -42.71)
CIE-LCHlch(69.61, 57.98, 312.55°)
OKLaboklab(75.39% 0.0934 -0.1186)
OKLCHoklch(75.39% 0.151 308.2)
XYZxyz(51.7309, 40.2019, 93.8233)
Luminance0.4020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA93F8 #C1F893
analogous
#9793F8 #CA93F8 #F893F4
triadic
#CA93F8 #F8CA93 #93F8CA
tetradic
#CA93F8 #F89793 #C1F893 #93F4F8
square
#CA93F8 #F89793 #C1F893 #93F4F8
split-complementary
#CA93F8 #F4F893 #93F897
monochromatic
#9220F1 #AE5AF4 #CA93F8 #E6CCFC #F1E2FD

Accessibility & contrast

On white

2.32
#CA93F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#CA93F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA93F8
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA93F8#FFFFFF#000000##000000
##CA93F81.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA8FC
Deuteranopia (green-blind)
#8AABF5
Tritanopia (blue-blind)
#C4A3BA
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ca93f8;
/* rgb */ color: rgb(202, 147, 248);
/* oklch */ color: oklch(75.4% 0.151 308.2);
Tailwind
colors: {
  custom: {
    50: '#dcb3fb',
    500: '#ca93f8',
    950: '#000000',
  },
}
SCSS
$custom: #ca93f8;
$custom-light: #dcb3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca93f8",
  "rgb": {
    "r": 202,
    "g": 147,
    "b": 248
  },
  "hsl": {
    "h": 272.673,
    "s": 87.826,
    "l": 77.451
  },
  "oklch": {
    "l": 0.75388,
    "c": 0.15092,
    "h": 308.2
  },
  "luminance": 0.40201
}

Semantic roles & 50–950 ramp

primary
#CA93F8
secondary
#E4F5D6
accent
#E40169
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CA93F8

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

Preview Lab → · Contrast checker → · Palette generator →

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