#B438D2#B438D2

#B438D2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.7% C 0.235 H 318.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#B438D2
RGBrgb(180, 56, 210)
HSLhsl(288, 63%, 52%)
HSVhsv(288, 73%, 82%)
CMYKcmyk(14.3%, 73.3%, 0%, 17.6%)
CIE-LABlab(48.49, 69.37, -55.11)
CIE-LCHlch(48.49, 88.59, 321.54°)
OKLaboklab(58.66% 0.1776 -0.1547)
OKLCHoklch(58.66% 0.236 318.9)
XYZxyz(31.8679, 17.1863, 62.5989)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B438D2 #56D238
analogous
#6738D2 #B438D2 #D238A3
triadic
#B438D2 #D2B438 #38D2B4
tetradic
#B438D2 #D26738 #56D238 #38A3D2
square
#B438D2 #D26738 #56D238 #38A3D2
split-complementary
#B438D2 #A3D238 #38D267
monochromatic
#631A75 #8E26A7 #B438D2 #C76ADD #DA9CE9

Accessibility & contrast

On white

4.73
#B438D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#B438D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B438D2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B438D2#FFFFFF#000000##FFFFFF
##B438D21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#B45783
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b438d2;
/* rgb */ color: rgb(180, 56, 210);
/* oklch */ color: oklch(58.7% 0.235 318.9);
Tailwind
colors: {
  custom: {
    50: '#cf7be0',
    500: '#b438d2',
    950: '#000000',
  },
}
SCSS
$custom: #b438d2;
$custom-light: #cf7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#b438d2",
  "rgb": {
    "r": 180,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 288.312,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58661,
    "c": 0.2355,
    "h": 318.9
  },
  "luminance": 0.17185
}

Semantic roles & 50–950 ramp

primary
#B438D2
secondary
#9ED591
accent
#E64262
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B438D2

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

Preview Lab → · Contrast checker → · Palette generator →

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