#B248E4#B248E4

#B248E4 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.233 H 312.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#B248E4
RGBrgb(178, 72, 228)
HSLhsl(281, 74%, 59%)
HSVhsv(281, 68%, 89%)
CMYKcmyk(21.9%, 68.4%, 0%, 10.6%)
CIE-LABlab(51.50, 66.34, -60.53)
CIE-LCHlch(51.50, 89.81, 317.62°)
OKLaboklab(61.11% 0.1579 -0.1708)
OKLCHoklch(61.11% 0.233 312.7)
XYZxyz(34.6786, 19.7021, 75.3599)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248E4 #7AE448
analogous
#6448E4 #B248E4 #E448C8
triadic
#B248E4 #E4B248 #48E4B2
tetradic
#B248E4 #E46448 #7AE448 #48C8E4
square
#B248E4 #E46448 #7AE448 #48C8E4
split-complementary
#B248E4 #C8E448 #48E464
monochromatic
#70179B #971FD0 #B248E4 #C87DEC #DFB3F4

Accessibility & contrast

On white

4.25
#B248E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#B248E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B248E4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248E4#FFFFFF#000000##000000
##B248E41.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E9
Deuteranopia (green-blind)
#3A7DE1
Tritanopia (blue-blind)
#AD6991
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b248e4;
/* rgb */ color: rgb(178, 72, 228);
/* oklch */ color: oklch(61.1% 0.233 312.7);
Tailwind
colors: {
  custom: {
    50: '#cd83ed',
    500: '#b248e4',
    950: '#000000',
  },
}
SCSS
$custom: #b248e4;
$custom-light: #cd83ed;
$custom-dark: #000000;
JSON
{
  "hex": "#b248e4",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 228
  },
  "hsl": {
    "h": 280.769,
    "s": 74.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61106,
    "c": 0.23256,
    "h": 312.7
  },
  "luminance": 0.19701
}

Semantic roles & 50–950 ramp

primary
#B248E4
secondary
#B9E3A5
accent
#F13773
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #B248E4

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

Preview Lab → · Contrast checker → · Palette generator →

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