#B838DB#B838DB

#B838DB is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.8% C 0.245 H 317.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B838DB
RGBrgb(184, 56, 219)
HSLhsl(287, 69%, 54%)
HSVhsv(287, 74%, 86%)
CMYKcmyk(16%, 74.4%, 0%, 14.1%)
CIE-LABlab(49.66, 71.80, -58.35)
CIE-LCHlch(49.66, 92.52, 320.90°)
OKLaboklab(59.79% 0.1813 -0.1641)
OKLCHoklch(59.79% 0.245 317.9)
XYZxyz(33.9657, 18.1347, 68.7153)
Luminance0.1813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838DB #5BDB38
analogous
#6738DB #B838DB #DB38AC
triadic
#B838DB #DBB838 #38DBB8
tetradic
#B838DB #DB6738 #5BDB38 #38ACDB
square
#B838DB #DB6738 #5BDB38 #38ACDB
split-complementary
#B838DB #ACDB38 #38DB67
monochromatic
#6A1781 #9521B5 #B838DB #CA6CE4 #DDA0EE

Accessibility & contrast

On white

4.54
#B838DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#B838DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B838DB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838DB#FFFFFF#000000##000000
##B838DB1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#3E7AD7
Tritanopia (blue-blind)
#B75B88
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #b838db;
/* rgb */ color: rgb(184, 56, 219);
/* oklch */ color: oklch(59.8% 0.245 317.9);
Tailwind
colors: {
  custom: {
    50: '#d27ce7',
    500: '#b838db',
    950: '#000000',
  },
}
SCSS
$custom: #b838db;
$custom-light: #d27ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#b838db",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 287.117,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59788,
    "c": 0.24452,
    "h": 317.9
  },
  "luminance": 0.18133
}

Semantic roles & 50–950 ramp

primary
#B838DB
secondary
#A4DA95
accent
#EC3C62
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B838DB

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

Preview Lab → · Contrast checker → · Palette generator →

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