#CB98FA#CB98FA

#CB98FA is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.4% C 0.145 H 307.2°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CB98FA
RGBrgb(203, 152, 250)
HSLhsl(271, 91%, 79%)
HSVhsv(271, 39%, 98%)
CMYKcmyk(18.8%, 39.2%, 0%, 2%)
CIE-LABlab(70.91, 37.22, -41.76)
CIE-LCHlch(70.91, 55.94, 311.70°)
OKLaboklab(76.42% 0.088 -0.1158)
OKLCHoklch(76.42% 0.145 307.2)
XYZxyz(53.1088, 42.0556, 95.7437)
Luminance0.4205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB98FA #C7FA98
analogous
#9A98FA #CB98FA #FA98F8
triadic
#CB98FA #FACB98 #98FACB
tetradic
#CB98FA #FA9A98 #C7FA98 #98F8FA
square
#CB98FA #FA9A98 #C7FA98 #98F8FA
split-complementary
#CB98FA #F8FA98 #98FA9A
monochromatic
#9023F4 #AE5EF7 #CB98FA #E8D2FD #F0E2FE

Accessibility & contrast

On white

2.23
#CB98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#CB98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB98FA
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB98FA#FFFFFF#000000##000000
##CB98FA1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFE
Deuteranopia (green-blind)
#8EAEF7
Tritanopia (blue-blind)
#C4A7BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cb98fa;
/* rgb */ color: rgb(203, 152, 250);
/* oklch */ color: oklch(76.4% 0.145 307.2);
Tailwind
colors: {
  custom: {
    50: '#dcb7fc',
    500: '#cb98fa',
    950: '#000000',
  },
}
SCSS
$custom: #cb98fa;
$custom-light: #dcb7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb98fa",
  "rgb": {
    "r": 203,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 271.224,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76418,
    "c": 0.14545,
    "h": 307.2
  },
  "luminance": 0.42055
}

Semantic roles & 50–950 ramp

primary
#CB98FA
secondary
#E5F6D5
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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