#B838E3#B838E3

#B838E3 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.3% C 0.251 H 315.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B838E3
RGBrgb(184, 56, 227)
HSLhsl(285, 75%, 55%)
HSVhsv(285, 75%, 89%)
CMYKcmyk(18.9%, 75.3%, 0%, 11%)
CIE-LABlab(50.18, 73.29, -62.06)
CIE-LCHlch(50.18, 96.04, 319.75°)
OKLaboklab(60.32% 0.1803 -0.175)
OKLCHoklch(60.32% 0.251 315.9)
XYZxyz(35.0443, 18.5661, 74.3958)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838E3 #63E338
analogous
#6238E3 #B838E3 #E338B9
triadic
#B838E3 #E3B838 #38E3B8
tetradic
#B838E3 #E36238 #63E338 #38B9E3
square
#B838E3 #E36238 #63E338 #38B9E3
split-complementary
#B838E3 #B9E338 #38E362
monochromatic
#6E148D #981BC2 #B838E3 #CB6EEB #DEA3F2

Accessibility & contrast

On white

4.46
#B838E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#B838E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B838E3
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838E3#FFFFFF#000000##000000
##B838E31.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E8
Deuteranopia (green-blind)
#357BDF
Tritanopia (blue-blind)
#B55E8C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #b838e3;
/* rgb */ color: rgb(184, 56, 227);
/* oklch */ color: oklch(60.3% 0.251 315.9);
Tailwind
colors: {
  custom: {
    50: '#d27ced',
    500: '#b838e3',
    950: '#000000',
  },
}
SCSS
$custom: #b838e3;
$custom-light: #d27ced;
$custom-dark: #000000;
JSON
{
  "hex": "#b838e3",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 227
  },
  "hsl": {
    "h": 284.912,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60318,
    "c": 0.25121,
    "h": 315.9
  },
  "luminance": 0.18565
}

Semantic roles & 50–950 ramp

primary
#B838E3
secondary
#AADF98
accent
#F23665
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #B838E3

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

Preview Lab → · Contrast checker → · Palette generator →

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