#B838AF#B838AF

#B838AF is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.209 H 330.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B838AF
RGBrgb(184, 56, 175)
HSLhsl(304, 53%, 47%)
HSVhsv(304, 70%, 72%)
CMYKcmyk(0%, 69.6%, 4.9%, 27.8%)
CIE-LABlab(47.13, 64.20, -36.91)
CIE-LCHlch(47.13, 74.05, 330.11°)
OKLaboklab(57.17% 0.1828 -0.1016)
OKLCHoklch(57.17% 0.209 330.9)
XYZxyz(28.9191, 16.1161, 42.1367)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B838AF #38B841
analogous
#8138B8 #B838AF #B8386F
triadic
#B838AF #AFB838 #38AFB8
tetradic
#B838AF #B88138 #38B841 #386FB8
square
#B838AF #B88138 #38B841 #386FB8
split-complementary
#B838AF #6FB838 #38B881
monochromatic
#5A1B56 #892A82 #B838AF #CE5FC6 #DD8ED7

Accessibility & contrast

On white

4.97
#B838AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#B838AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B838AF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B838AF#FFFFFF#000000##FFFFFF
##B838AF1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B2
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#BF476F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b838af;
/* rgb */ color: rgb(184, 56, 175);
/* oklch */ color: oklch(57.2% 0.209 330.9);
Tailwind
colors: {
  custom: {
    50: '#d17ac7',
    500: '#b838af',
    950: '#000000',
  },
}
SCSS
$custom: #b838af;
$custom-light: #d17ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#b838af",
  "rgb": {
    "r": 184,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 304.219,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57165,
    "c": 0.20913,
    "h": 330.9
  },
  "luminance": 0.16114
}

Semantic roles & 50–950 ramp

primary
#B838AF
secondary
#85C789
accent
#DD554B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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