#B262E4#B262E4

#B262E4 is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.3% C 0.197 H 310.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B262E4
RGBrgb(178, 98, 228)
HSLhsl(277, 71%, 64%)
HSVhsv(277, 57%, 89%)
CMYKcmyk(21.9%, 57%, 0%, 10.6%)
CIE-LABlab(55.89, 54.32, -53.50)
CIE-LCHlch(55.89, 76.24, 315.44°)
OKLaboklab(64.28% 0.128 -0.1503)
OKLCHoklch(64.28% 0.197 310.4)
XYZxyz(36.7287, 23.8025, 76.0432)
Luminance0.2380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262E4 #94E462
analogous
#7162E4 #B262E4 #E462D5
triadic
#B262E4 #E4B262 #62E4B2
tetradic
#B262E4 #E47162 #94E462 #62D5E4
square
#B262E4 #E47162 #94E462 #62D5E4
split-complementary
#B262E4 #D5E462 #62E471
monochromatic
#761EAE #982EDB #B262E4 #CC96ED #E5CAF6

Accessibility & contrast

On white

3.65
#B262E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#B262E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262E4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262E4#FFFFFF#000000##000000
##B262E41.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#5587E1
Tritanopia (blue-blind)
#AC7A9A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #b262e4;
/* rgb */ color: rgb(178, 98, 228);
/* oklch */ color: oklch(64.3% 0.197 310.4);
Tailwind
colors: {
  custom: {
    50: '#cc92ed',
    500: '#b262e4',
    950: '#000000',
  },
}
SCSS
$custom: #b262e4;
$custom-light: #cc92ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b262e4",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 228
  },
  "hsl": {
    "h": 276.923,
    "s": 70.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64282,
    "c": 0.1974,
    "h": 310.4
  },
  "luminance": 0.23802
}

Semantic roles & 50–950 ramp

primary
#B262E4
secondary
#CCE8BA
accent
#D3135D
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #B262E4

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

Preview Lab → · Contrast checker → · Palette generator →

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