#CAB2FA#CAB2FA

#CAB2FA is a light, moderate violet. Relative luminance 0.513; OKLCH L 80.9% C 0.103 H 299.4°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#CAB2FA
RGBrgb(202, 178, 250)
HSLhsl(260, 88%, 84%)
HSVhsv(260, 29%, 98%)
CMYKcmyk(19.2%, 28.8%, 0%, 2%)
CIE-LABlab(76.86, 22.69, -32.53)
CIE-LCHlch(76.86, 39.66, 304.89°)
OKLaboklab(80.93% 0.0505 -0.0895)
OKLCHoklch(80.93% 0.103 299.4)
XYZxyz(57.5291, 51.2993, 97.2949)
Luminance0.5130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB2FA #E2FAB2
analogous
#B2BEFA #CAB2FA #EEB2FA
triadic
#CAB2FA #FACAB2 #B2FACA
tetradic
#CAB2FA #FAB2BE #E2FAB2 #B2FAEE
square
#CAB2FA #FAB2BE #E2FAB2 #B2FAEE
split-complementary
#CAB2FA #FAEEB2 #BEFAB2
monochromatic
#7B3FF3 #A279F6 #CAB2FA #EBE2FD #EBE2FD

Accessibility & contrast

On white

1.87
#CAB2FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#CAB2FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB2FA
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB2FA#FFFFFF#000000##000000
##CAB2FA1.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2BEFD
Deuteranopia (green-blind)
#A6BDF8
Tritanopia (blue-blind)
#C2BDCC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cab2fa;
/* rgb */ color: rgb(202, 178, 250);
/* oklch */ color: oklch(80.9% 0.103 299.4);
Tailwind
colors: {
  custom: {
    50: '#dbc9fc',
    500: '#cab2fa',
    950: '#000000',
  },
}
SCSS
$custom: #cab2fa;
$custom-light: #dbc9fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cab2fa",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 250
  },
  "hsl": {
    "h": 260,
    "s": 87.805,
    "l": 83.922
  },
  "oklch": {
    "l": 0.80932,
    "c": 0.10277,
    "h": 299.4
  },
  "luminance": 0.51299
}

Semantic roles & 50–950 ramp

primary
#CAB2FA
secondary
#BADE73
accent
#E40199
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151317
muted
#848285

Preview Lab

Preview with #CAB2FA

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

Preview Lab → · Contrast checker → · Palette generator →

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