#B838EA#B838EA

#B838EA is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.8% C 0.257 H 314.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#B838EA
RGBrgb(184, 56, 234)
HSLhsl(283, 81%, 57%)
HSVhsv(283, 76%, 92%)
CMYKcmyk(21.4%, 76.1%, 0%, 8.2%)
CIE-LABlab(50.64, 74.62, -65.26)
CIE-LCHlch(50.64, 99.13, 318.83°)
OKLaboklab(60.79% 0.1792 -0.1844)
OKLCHoklch(60.79% 0.257 314.2)
XYZxyz(36.0301, 18.9605, 79.5877)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838EA #6AEA38
analogous
#5F38EA #B838EA #EA38C3
triadic
#B838EA #EAB838 #38EAB8
tetradic
#B838EA #EA5F38 #6AEA38 #38C3EA
square
#B838EA #EA5F38 #6AEA38 #38C3EA
split-complementary
#B838EA #C3EA38 #38EA5F
monochromatic
#721098 #9B16CF #B838EA #CC6FF0 #E0A7F6

Accessibility & contrast

On white

4.38
#B838EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#B838EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B838EA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838EA#FFFFFF#000000##000000
##B838EA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#297CE6
Tritanopia (blue-blind)
#B36190
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #b838ea;
/* rgb */ color: rgb(184, 56, 234);
/* oklch */ color: oklch(60.8% 0.257 314.2);
Tailwind
colors: {
  custom: {
    50: '#d27cf2',
    500: '#b838ea',
    950: '#000000',
  },
}
SCSS
$custom: #b838ea;
$custom-light: #d27cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b838ea",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 283.146,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60793,
    "c": 0.25711,
    "h": 314.2
  },
  "luminance": 0.18959
}

Semantic roles & 50–950 ramp

primary
#B838EA
secondary
#AFE39B
accent
#F73068
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #B838EA

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

Preview Lab → · Contrast checker → · Palette generator →

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