#B238B5#B238B5

#B238B5 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.211 H 326.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#B238B5
RGBrgb(178, 56, 181)
HSLhsl(299, 53%, 46%)
HSVhsv(299, 69%, 71%)
CMYKcmyk(1.7%, 69.1%, 0%, 29%)
CIE-LABlab(46.49, 63.80, -41.51)
CIE-LCHlch(46.49, 76.12, 326.95°)
OKLaboklab(56.62% 0.1766 -0.1151)
OKLCHoklch(56.62% 0.211 326.9)
XYZxyz(28.1143, 15.6314, 45.2435)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238B5 #3BB538
analogous
#7438B5 #B238B5 #B5387A
triadic
#B238B5 #B5B238 #38B5B2
tetradic
#B238B5 #B57438 #3BB538 #387AB5
square
#B238B5 #B57438 #3BB538 #387AB5
split-complementary
#B238B5 #7AB538 #38B574
monochromatic
#561B58 #842A86 #B238B5 #CA5DCD #DA8CDB

Accessibility & contrast

On white

5.09
#B238B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B238B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238B5
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238B5#FFFFFF#000000##FFFFFF
##B238B51.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B9
Deuteranopia (green-blind)
#5674B2
Tritanopia (blue-blind)
#B74B73
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b238b5;
/* rgb */ color: rgb(178, 56, 181);
/* oklch */ color: oklch(56.6% 0.211 326.9);
Tailwind
colors: {
  custom: {
    50: '#cd79cc',
    500: '#b238b5',
    950: '#000000',
  },
}
SCSS
$custom: #b238b5;
$custom-light: #cd79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b238b5",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 298.56,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56622,
    "c": 0.21074,
    "h": 326.9
  },
  "luminance": 0.1563
}

Semantic roles & 50–950 ramp

primary
#B238B5
secondary
#85C683
accent
#DC4C4F
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238B5

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

Preview Lab → · Contrast checker → · Palette generator →

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