#B240FF#B240FF

#B240FF is a light, highly saturated violet. Relative luminance 0.204; OKLCH L 62.2% C 0.266 H 307.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B240FF
RGBrgb(178, 64, 255)
HSLhsl(276, 100%, 63%)
HSVhsv(276, 75%, 100%)
CMYKcmyk(30.2%, 74.9%, 0%, 0%)
CIE-LABlab(52.23, 75.01, -74.47)
CIE-LCHlch(52.23, 105.70, 315.21°)
OKLaboklab(62.2% 0.1612 -0.2117)
OKLCHoklch(62.2% 0.266 307.3)
XYZxyz(38.2396, 20.3523, 96.5022)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B240FF #8DFF40
analogous
#5340FF #B240FF #FF40EC
triadic
#B240FF #FFB240 #40FFB2
tetradic
#B240FF #FF5340 #8DFF40 #40ECFF
square
#B240FF #FF5340 #8DFF40 #40ECFF
split-complementary
#B240FF #ECFF40 #40FF53
monochromatic
#7500C5 #9903FF #B240FF #CB7DFF #E3BAFF

Accessibility & contrast

On white

4.14
#B240FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#B240FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B240FF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B240FF#FFFFFF#000000##000000
##B240FF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#007DFB
Tritanopia (blue-blind)
#A56F9E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b240ff;
/* rgb */ color: rgb(178, 64, 255);
/* oklch */ color: oklch(62.2% 0.266 307.3);
Tailwind
colors: {
  custom: {
    50: '#cf80ff',
    500: '#b240ff',
    950: '#000000',
  },
}
SCSS
$custom: #b240ff;
$custom-light: #cf80ff;
$custom-dark: #000000;
JSON
{
  "hex": "#b240ff",
  "rgb": {
    "r": 178,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 275.812,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62203,
    "c": 0.26609,
    "h": 307.3
  },
  "luminance": 0.20352
}

Semantic roles & 50–950 ramp

primary
#B240FF
secondary
#C7F0AB
accent
#E6005D
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#150B18
muted
#837C86

Preview Lab

Preview with #B240FF

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

Preview Lab → · Contrast checker → · Palette generator →

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