#B262ED#B262ED

#B262ED is a light, highly saturated violet. Relative luminance 0.243; OKLCH L 64.8% C 0.207 H 308.2°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B262ED
RGBrgb(178, 98, 237)
HSLhsl(275, 79%, 66%)
HSVhsv(275, 59%, 93%)
CMYKcmyk(24.9%, 58.6%, 0%, 7.1%)
CIE-LABlab(56.40, 56.30, -57.72)
CIE-LCHlch(56.40, 80.63, 314.29°)
OKLaboklab(64.82% 0.1281 -0.1626)
OKLCHoklch(64.82% 0.207 308.2)
XYZxyz(38.0108, 24.3153, 82.7953)
Luminance0.2432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262ED #9DED62
analogous
#6C62ED #B262ED #ED62E3
triadic
#B262ED #EDB262 #62EDB2
tetradic
#B262ED #ED6C62 #9DED62 #62E3ED
square
#B262ED #ED6C62 #9DED62 #62E3ED
split-complementary
#B262ED #E3ED62 #62ED6C
monochromatic
#7716BF #972BE7 #B262ED #CD99F3 #E8D0FA

Accessibility & contrast

On white

3.58
#B262ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#B262ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262ED
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262ED#FFFFFF#000000##000000
##B262ED1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A84F1
Deuteranopia (green-blind)
#4E88EA
Tritanopia (blue-blind)
#A97D9E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #b262ed;
/* rgb */ color: rgb(178, 98, 237);
/* oklch */ color: oklch(64.8% 0.207 308.2);
Tailwind
colors: {
  custom: {
    50: '#cd92f3',
    500: '#b262ed',
    950: '#000000',
  },
}
SCSS
$custom: #b262ed;
$custom-light: #cd92f3;
$custom-dark: #000000;
JSON
{
  "hex": "#b262ed",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 237
  },
  "hsl": {
    "h": 274.532,
    "s": 79.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64821,
    "c": 0.20703,
    "h": 308.2
  },
  "luminance": 0.24315
}

Semantic roles & 50–950 ramp

primary
#B262ED
secondary
#D2EDBE
accent
#DC0A63
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #B262ED

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

Preview Lab → · Contrast checker → · Palette generator →

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