#CB81F8#CB81F8

#CB81F8 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.6% C 0.180 H 311.4°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#CB81F8
RGBrgb(203, 129, 248)
HSLhsl(277, 89%, 74%)
HSVhsv(277, 48%, 97%)
CMYKcmyk(18.1%, 48%, 0%, 2.7%)
CIE-LABlab(65.88, 49.11, -48.56)
CIE-LCHlch(65.88, 69.06, 315.32°)
OKLaboklab(72.62% 0.1192 -0.1354)
OKLCHoklch(72.62% 0.18 311.4)
XYZxyz(49.4191, 35.1753, 92.9749)
Luminance0.3517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB81F8 #AEF881
analogous
#9081F8 #CB81F8 #F881EA
triadic
#CB81F8 #F8CB81 #81F8CB
tetradic
#CB81F8 #F89081 #AEF881 #81EAF8
square
#CB81F8 #F89081 #AEF881 #81EAF8
split-complementary
#CB81F8 #EAF881 #81F890
monochromatic
#9B0DF1 #B347F5 #CB81F8 #E3BBFB #F3E2FD

Accessibility & contrast

On white

2.61
#CB81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#CB81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB81F8
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB81F8#FFFFFF#000000##000000
##CB81F81.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#7AA2F5
Tritanopia (blue-blind)
#C694B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cb81f8;
/* rgb */ color: rgb(203, 129, 248);
/* oklch */ color: oklch(72.6% 0.180 311.4);
Tailwind
colors: {
  custom: {
    50: '#dda7fb',
    500: '#cb81f8',
    950: '#000000',
  },
}
SCSS
$custom: #cb81f8;
$custom-light: #dda7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb81f8",
  "rgb": {
    "r": 203,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 277.311,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72621,
    "c": 0.18039,
    "h": 311.4
  },
  "luminance": 0.35174
}

Semantic roles & 50–950 ramp

primary
#CB81F8
secondary
#E2F5D6
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CB81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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