#B248ED#B248ED

#B248ED is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.7% C 0.241 H 310.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B248ED
RGBrgb(178, 72, 237)
HSLhsl(279, 82%, 61%)
HSVhsv(279, 70%, 93%)
CMYKcmyk(24.9%, 69.6%, 0%, 7.1%)
CIE-LABlab(52.08, 68.19, -64.67)
CIE-LCHlch(52.08, 93.97, 316.52°)
OKLaboklab(61.7% 0.1569 -0.1829)
OKLCHoklch(61.7% 0.241 310.6)
XYZxyz(35.9606, 20.2150, 82.1119)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B248ED #83ED48
analogous
#5F48ED #B248ED #ED48D6
triadic
#B248ED #EDB248 #48EDB2
tetradic
#B248ED #ED5F48 #83ED48 #48D6ED
square
#B248ED #ED5F48 #83ED48 #48D6ED
split-complementary
#B248ED #D6ED48 #48ED5F
monochromatic
#7311AA #9916E2 #B248ED #C980F2 #E1B7F8

Accessibility & contrast

On white

4.16
#B248ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#B248ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B248ED
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B248ED#FFFFFF#000000##000000
##B248ED1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F2
Deuteranopia (green-blind)
#2D7EE9
Tritanopia (blue-blind)
#AA6C96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b248ed;
/* rgb */ color: rgb(178, 72, 237);
/* oklch */ color: oklch(61.7% 0.241 310.6);
Tailwind
colors: {
  custom: {
    50: '#ce83f4',
    500: '#b248ed',
    950: '#000000',
  },
}
SCSS
$custom: #b248ed;
$custom-light: #ce83f4;
$custom-dark: #000000;
JSON
{
  "hex": "#b248ed",
  "rgb": {
    "r": 178,
    "g": 72,
    "b": 237
  },
  "hsl": {
    "h": 278.545,
    "s": 82.09,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61704,
    "c": 0.24098,
    "h": 310.6
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

primary
#B248ED
secondary
#BFE8A9
accent
#DE0754
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #B248ED

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

Preview Lab → · Contrast checker → · Palette generator →

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