#B262DB#B262DB

#B262DB is a light, vivid violet. Relative luminance 0.233; OKLCH L 63.8% C 0.188 H 312.8°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B262DB
RGBrgb(178, 98, 219)
HSLhsl(280, 63%, 62%)
HSVhsv(280, 55%, 86%)
CMYKcmyk(18.7%, 55.3%, 0%, 14.1%)
CIE-LABlab(55.40, 52.38, -49.22)
CIE-LCHlch(55.40, 71.87, 316.78°)
OKLaboklab(63.76% 0.1276 -0.1378)
OKLCHoklch(63.76% 0.188 312.8)
XYZxyz(35.5118, 23.3157, 69.6338)
Luminance0.2331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262DB #8BDB62
analogous
#7562DB #B262DB #DB62C8
triadic
#B262DB #DBB262 #62DBB2
tetradic
#B262DB #DB7562 #8BDB62 #62C8DB
square
#B262DB #DB7562 #8BDB62 #62C8DB
split-complementary
#B262DB #C8DB62 #62DB75
monochromatic
#75249E #9A30D0 #B262DB #CA94E6 #E3C6F2

Accessibility & contrast

On white

3.71
#B262DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#B262DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262DB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262DB#FFFFFF#000000##000000
##B262DB1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#5C87D8
Tritanopia (blue-blind)
#AE7795
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #b262db;
/* rgb */ color: rgb(178, 98, 219);
/* oklch */ color: oklch(63.8% 0.188 312.8);
Tailwind
colors: {
  custom: {
    50: '#cc92e7',
    500: '#b262db',
    950: '#000000',
  },
}
SCSS
$custom: #b262db;
$custom-light: #cc92e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b262db",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 279.669,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63761,
    "c": 0.1878,
    "h": 312.8
  },
  "luminance": 0.23315
}

Semantic roles & 50–950 ramp

primary
#B262DB
secondary
#C5E3B6
accent
#CA1B56
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B262DB

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

Preview Lab → · Contrast checker → · Palette generator →

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