#B248EF#B248EF

#B248EF is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.8% C 0.243 H 310.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B248EF
RGBrgb(178, 72, 239)
HSLhsl(278, 84%, 61%)
HSVhsv(278, 70%, 94%)
CMYKcmyk(25.5%, 69.9%, 0%, 6.3%)
CIE-LABlab(52.21, 68.60, -65.58)
CIE-LCHlch(52.21, 94.90, 316.29°)
OKLaboklab(61.84% 0.1567 -0.1856)
OKLCHoklch(61.84% 0.243 310.2)
XYZxyz(36.2544, 20.3325, 83.6593)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248EF #85EF48
analogous
#5E48EF #B248EF #EF48D8
triadic
#B248EF #EFB248 #48EFB2
tetradic
#B248EF #EF5E48 #85EF48 #48D8EF
square
#B248EF #EF5E48 #85EF48 #48D8EF
split-complementary
#B248EF #D8EF48 #48EF5E
monochromatic
#740FAD #9914E6 #B248EF #CA80F4 #E1B9F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B248EF#FFFFFF#000000##000000
##B248EF1.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)
#0078F4
Deuteranopia (green-blind)
#297EEB
Tritanopia (blue-blind)
#AA6D97
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #b248ef;
/* rgb */ color: rgb(178, 72, 239);
/* oklch */ color: oklch(61.8% 0.243 310.2);
Tailwind
colors: {
  custom: {
    50: '#ce83f5',
    500: '#b248ef',
    950: '#000000',
  },
}
SCSS
$custom: #b248ef;
$custom-light: #ce83f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b248ef",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 278.084,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.6184,
    "c": 0.24286,
    "h": 310.2
  },
  "luminance": 0.20332
}

Semantic roles & 50–950 ramp

primary
#B248EF
secondary
#C1E9AA
accent
#E00555
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #B248EF

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

Preview Lab → · Contrast checker → · Palette generator →

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