#CB7EF2#CB7EF2

#CB7EF2 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.9% C 0.179 H 313.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CB7EF2
RGBrgb(203, 126, 242)
HSLhsl(280, 82%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(16.1%, 47.9%, 0%, 5.1%)
CIE-LABlab(64.99, 49.41, -46.68)
CIE-LCHlch(64.99, 67.97, 316.63°)
OKLaboklab(71.86% 0.1225 -0.1299)
OKLCHoklch(71.86% 0.179 313.3)
XYZxyz(48.1138, 34.0302, 88.0211)
Luminance0.3403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7EF2 #A5F27E
analogous
#917EF2 #CB7EF2 #F27EDF
triadic
#CB7EF2 #F2CB7E #7EF2CB
tetradic
#CB7EF2 #F2917E #A5F27E #7EDFF2
square
#CB7EF2 #F2917E #A5F27E #7EDFF2
split-complementary
#CB7EF2 #DFF27E #7EF291
monochromatic
#9C16DF #B546EC #CB7EF2 #E1B6F8 #F4E3FC

Accessibility & contrast

On white

2.69
#CB7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CB7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7EF2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7EF2#FFFFFF#000000##000000
##CB7EF21.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#C890AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7ef2;
/* rgb */ color: rgb(203, 126, 242);
/* oklch */ color: oklch(71.9% 0.179 313.3);
Tailwind
colors: {
  custom: {
    50: '#dda5f7',
    500: '#cb7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cb7ef2;
$custom-light: #dda5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7ef2",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 279.828,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71859,
    "c": 0.17856,
    "h": 313.3
  },
  "luminance": 0.34029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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