#B262E2#B262E2

#B262E2 is a light, vivid violet. Relative luminance 0.237; OKLCH L 64.2% C 0.195 H 310.9°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B262E2
RGBrgb(178, 98, 226)
HSLhsl(278, 69%, 64%)
HSVhsv(278, 57%, 89%)
CMYKcmyk(21.2%, 56.6%, 0%, 11.4%)
CIE-LABlab(55.78, 53.88, -52.55)
CIE-LCHlch(55.78, 75.27, 315.72°)
OKLaboklab(64.16% 0.1279 -0.1475)
OKLCHoklch(64.16% 0.195 310.9)
XYZxyz(36.4527, 23.6921, 74.5895)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262E2 #92E262
analogous
#7262E2 #B262E2 #E262D2
triadic
#B262E2 #E2B262 #62E2B2
tetradic
#B262E2 #E27262 #92E262 #62D2E2
square
#B262E2 #E27262 #92E262 #62D2E2
split-complementary
#B262E2 #D2E262 #62E272
monochromatic
#761FAA #992ED8 #B262E2 #CB96EC #E5C9F5

Accessibility & contrast

On white

3.66
#B262E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#B262E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262E2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262E2#FFFFFF#000000##000000
##B262E21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3982E6
Deuteranopia (green-blind)
#5787DF
Tritanopia (blue-blind)
#AC7999
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b262e2;
/* rgb */ color: rgb(178, 98, 226);
/* oklch */ color: oklch(64.2% 0.195 310.9);
Tailwind
colors: {
  custom: {
    50: '#cc92ec',
    500: '#b262e2',
    950: '#000000',
  },
}
SCSS
$custom: #b262e2;
$custom-light: #cc92ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b262e2",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 226
  },
  "hsl": {
    "h": 277.5,
    "s": 68.817,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64164,
    "c": 0.19527,
    "h": 310.9
  },
  "luminance": 0.23691
}

Semantic roles & 50–950 ramp

primary
#B262E2
secondary
#CAE7B9
accent
#D1155B
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B262E2

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

Preview Lab → · Contrast checker → · Palette generator →

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