#B148EF#B148EF

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

Color values

HEX#B148EF
RGBrgb(177, 72, 239)
HSLhsl(278, 84%, 61%)
HSVhsv(278, 70%, 94%)
CMYKcmyk(25.9%, 69.9%, 0%, 6.3%)
CIE-LABlab(52.08, 68.41, -65.80)
CIE-LCHlch(52.08, 94.91, 316.11°)
OKLaboklab(61.72% 0.1554 -0.1863)
OKLCHoklch(61.72% 0.243 309.8)
XYZxyz(36.0257, 20.2146, 83.6486)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B148EF #86EF48
analogous
#5D48EF #B148EF #EF48D9
triadic
#B148EF #EFB148 #48EFB1
tetradic
#B148EF #EF5D48 #86EF48 #48D9EF
square
#B148EF #EF5D48 #86EF48 #48D9EF
split-complementary
#B148EF #D9EF48 #48EF5D
monochromatic
#730FAD #9814E6 #B148EF #C980F4 #E1B9F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B148EF#FFFFFF#000000##000000
##B148EF1.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)
#0078F4
Deuteranopia (green-blind)
#277EEB
Tritanopia (blue-blind)
#A86D97
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #b148ef;
/* rgb */ color: rgb(177, 72, 239);
/* oklch */ color: oklch(61.7% 0.243 309.8);
Tailwind
colors: {
  custom: {
    50: '#cd83f5',
    500: '#b148ef',
    950: '#000000',
  },
}
SCSS
$custom: #b148ef;
$custom-light: #cd83f5;
$custom-dark: #000000;
JSON
{
  "hex": "#b148ef",
  "rgb": {
    "r": 177,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 277.725,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61718,
    "c": 0.24257,
    "h": 309.8
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B148EF

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

Preview Lab → · Contrast checker → · Palette generator →

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