#B238BF#B238BF

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

Color values

HEX#B238BF
RGBrgb(178, 56, 191)
HSLhsl(294, 55%, 48%)
HSVhsv(294, 71%, 75%)
CMYKcmyk(6.8%, 70.7%, 0%, 25.1%)
CIE-LABlab(47.05, 65.53, -46.46)
CIE-LCHlch(47.05, 80.33, 324.67°)
OKLaboklab(57.21% 0.1765 -0.1295)
OKLCHoklch(57.21% 0.219 323.7)
XYZxyz(29.1774, 16.0567, 50.8425)
Luminance0.1605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238BF #45BF38
analogous
#6E38BF #B238BF #BF3888
triadic
#B238BF #BFB238 #38BFB2
tetradic
#B238BF #BF6E38 #45BF38 #3888BF
square
#B238BF #BF6E38 #45BF38 #3888BF
split-complementary
#B238BF #88BF38 #38BF6E
monochromatic
#5A1C60 #862A90 #B238BF #C763D1 #D892DF

Accessibility & contrast

On white

4.99
#B238BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#B238BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238BF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238BF#FFFFFF#000000##FFFFFF
##B238BF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0966C3
Deuteranopia (green-blind)
#4F74BC
Tritanopia (blue-blind)
#B54F78
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b238bf;
/* rgb */ color: rgb(178, 56, 191);
/* oklch */ color: oklch(57.2% 0.219 323.7);
Tailwind
colors: {
  custom: {
    50: '#cd7ad3',
    500: '#b238bf',
    950: '#000000',
  },
}
SCSS
$custom: #b238bf;
$custom-light: #cd7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#b238bf",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 294.222,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57205,
    "c": 0.21887,
    "h": 323.7
  },
  "luminance": 0.16055
}

Semantic roles & 50–950 ramp

primary
#B238BF
secondary
#8FCA89
accent
#DE4A58
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140A14
muted
#837C83

Preview Lab

Preview with #B238BF

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

Preview Lab → · Contrast checker → · Palette generator →

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