#B838CA#B838CA

#B838CA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.230 H 322.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#B838CA
RGBrgb(184, 56, 202)
HSLhsl(293, 58%, 51%)
HSVhsv(293, 72%, 79%)
CMYKcmyk(8.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(48.62, 68.74, -50.27)
CIE-LCHlch(48.62, 85.16, 323.82°)
OKLaboklab(58.71% 0.1828 -0.1404)
OKLCHoklch(58.71% 0.23 322.5)
XYZxyz(31.8409, 17.2848, 57.5248)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838CA #4ACA38
analogous
#6F38CA #B838CA #CA3893
triadic
#B838CA #CAB838 #38CAB8
tetradic
#B838CA #CA6F38 #4ACA38 #3893CA
square
#B838CA #CA6F38 #4ACA38 #3893CA
split-complementary
#B838CA #93CA38 #38CA6F
monochromatic
#611D6B #8D299B #B838CA #C968D7 #DA99E4

Accessibility & contrast

On white

4.71
#B838CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#B838CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838CA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838CA#FFFFFF#000000##FFFFFF
##B838CA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#4E78C7
Tritanopia (blue-blind)
#BA537E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b838ca;
/* rgb */ color: rgb(184, 56, 202);
/* oklch */ color: oklch(58.7% 0.230 322.5);
Tailwind
colors: {
  custom: {
    50: '#d17bdb',
    500: '#b838ca',
    950: '#000000',
  },
}
SCSS
$custom: #b838ca;
$custom-light: #d17bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#b838ca",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 292.603,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58714,
    "c": 0.23049,
    "h": 322.5
  },
  "luminance": 0.17283
}

Semantic roles & 50–950 ramp

primary
#B838CA
secondary
#96CF8E
accent
#E1475A
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #B838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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