#B262DC#B262DC

#B262DC is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.8% C 0.189 H 312.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B262DC
RGBrgb(178, 98, 220)
HSLhsl(279, 64%, 62%)
HSVhsv(279, 55%, 86%)
CMYKcmyk(19.1%, 55.5%, 0%, 13.7%)
CIE-LABlab(55.45, 52.59, -49.69)
CIE-LCHlch(55.45, 72.36, 316.62°)
OKLaboklab(63.82% 0.1277 -0.1392)
OKLCHoklch(63.82% 0.189 312.5)
XYZxyz(35.6438, 23.3685, 70.3292)
Luminance0.2337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262DC #8CDC62
analogous
#7562DC #B262DC #DC62C9
triadic
#B262DC #DCB262 #62DCB2
tetradic
#B262DC #DC7562 #8CDC62 #62C9DC
square
#B262DC #DC7562 #8CDC62 #62C9DC
split-complementary
#B262DC #C9DC62 #62DC75
monochromatic
#7524A0 #9930D1 #B262DC #CB94E7 #E3C6F2

Accessibility & contrast

On white

3.70
#B262DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#B262DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262DC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262DC#FFFFFF#000000##000000
##B262DC1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F81E0
Deuteranopia (green-blind)
#5B87D9
Tritanopia (blue-blind)
#AE7796
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b262dc;
/* rgb */ color: rgb(178, 98, 220);
/* oklch */ color: oklch(63.8% 0.189 312.5);
Tailwind
colors: {
  custom: {
    50: '#cc92e7',
    500: '#b262dc',
    950: '#000000',
  },
}
SCSS
$custom: #b262dc;
$custom-light: #cc92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b262dc",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 279.344,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63818,
    "c": 0.18886,
    "h": 312.5
  },
  "luminance": 0.23368
}

Semantic roles & 50–950 ramp

primary
#B262DC
secondary
#C6E3B7
accent
#CB1A57
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B262DC

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

Preview Lab → · Contrast checker → · Palette generator →

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