#B262C4#B262C4

#B262C4 is a light, vivid purple. Relative luminance 0.222; OKLCH L 62.5% C 0.164 H 320.0°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B262C4
RGBrgb(178, 98, 196)
HSLhsl(289, 45%, 58%)
HSVhsv(289, 50%, 77%)
CMYKcmyk(9.2%, 50%, 0%, 23.1%)
CIE-LABlab(54.23, 47.63, -37.99)
CIE-LCHlch(54.23, 60.92, 321.42°)
OKLaboklab(62.52% 0.1255 -0.1052)
OKLCHoklch(62.52% 0.164 320)
XYZxyz(32.6904, 22.1871, 54.7744)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B262C4 #74C462
analogous
#8162C4 #B262C4 #C462A5
triadic
#B262C4 #C4B262 #62C4B2
tetradic
#B262C4 #C48162 #74C462 #62A5C4
square
#B262C4 #C48162 #74C462 #62A5C4
split-complementary
#B262C4 #A5C462 #62C481
monochromatic
#6E2F7D #9640A9 #B262C4 #C88ED5 #DEBBE5

Accessibility & contrast

On white

3.86
#B262C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#B262C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B262C4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B262C4#FFFFFF#000000##000000
##B262C41.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#517CC7
Deuteranopia (green-blind)
#6A85C1
Tritanopia (blue-blind)
#B36F8A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #b262c4;
/* rgb */ color: rgb(178, 98, 196);
/* oklch */ color: oklch(62.5% 0.164 320.0);
Tailwind
colors: {
  custom: {
    50: '#cb91d6',
    500: '#b262c4',
    950: '#000000',
  },
}
SCSS
$custom: #b262c4;
$custom-light: #cb91d6;
$custom-dark: #000000;
JSON
{
  "hex": "#b262c4",
  "rgb": {
    "r": 178,
    "g": 98,
    "b": 196
  },
  "hsl": {
    "h": 288.98,
    "s": 45.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62517,
    "c": 0.16372,
    "h": 320
  },
  "luminance": 0.22186
}

Semantic roles & 50–950 ramp

primary
#B262C4
secondary
#B4D5AD
accent
#D5536B
background
#FCF9FD
surface
#F9F1FA
border
#D2CBD3
text
#140D14
muted
#827E83

Preview Lab

Preview with #B262C4

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

Preview Lab → · Contrast checker → · Palette generator →

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