#CB7FF2#CB7FF2

#CB7FF2 is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.0% C 0.177 H 313.2°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#CB7FF2
RGBrgb(203, 127, 242)
HSLhsl(280, 82%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(16.1%, 47.5%, 0%, 5.1%)
CIE-LABlab(65.19, 48.88, -46.36)
CIE-LCHlch(65.19, 67.37, 316.52°)
OKLaboklab(72.01% 0.1211 -0.129)
OKLCHoklch(72.01% 0.177 313.2)
XYZxyz(48.2423, 34.2872, 88.0639)
Luminance0.3429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7FF2 #A6F27F
analogous
#927FF2 #CB7FF2 #F27FE0
triadic
#CB7FF2 #F2CB7F #7FF2CB
tetradic
#CB7FF2 #F2927F #A6F27F #7FE0F2
square
#CB7FF2 #F2927F #A6F27F #7FE0F2
split-complementary
#CB7FF2 #E0F27F #7FF292
monochromatic
#9C17E0 #B447EC #CB7FF2 #E2B7F8 #F4E3FC

Accessibility & contrast

On white

2.67
#CB7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#CB7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7FF2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7FF2#FFFFFF#000000##000000
##CB7FF21.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#C891AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7ff2;
/* rgb */ color: rgb(203, 127, 242);
/* oklch */ color: oklch(72.0% 0.177 313.2);
Tailwind
colors: {
  custom: {
    50: '#dda6f7',
    500: '#cb7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cb7ff2;
$custom-light: #dda6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7ff2",
  "rgb": {
    "r": 203,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 279.652,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.7201,
    "c": 0.17696,
    "h": 313.2
  },
  "luminance": 0.34286
}

Semantic roles & 50–950 ramp

primary
#CB7FF2
secondary
#E1F4D7
accent
#DE0850
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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