#B238D9#B238D9

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

Color values

HEX#B238D9
RGBrgb(178, 56, 217)
HSLhsl(285, 68%, 54%)
HSVhsv(285, 74%, 85%)
CMYKcmyk(18%, 74.2%, 0%, 14.9%)
CIE-LABlab(48.64, 70.28, -58.89)
CIE-LCHlch(48.64, 91.69, 320.04°)
OKLaboklab(58.85% 0.1744 -0.1658)
OKLCHoklch(58.85% 0.241 316.4)
XYZxyz(32.2967, 17.3044, 67.2710)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238D9 #5FD938
analogous
#6138D9 #B238D9 #D938AF
triadic
#B238D9 #D9B238 #38D9B2
tetradic
#B238D9 #D96138 #5FD938 #38AFD9
square
#B238D9 #D96138 #5FD938 #38AFD9
split-complementary
#B238D9 #AFD938 #38D961
monochromatic
#66187E #8F22B2 #B238D9 #C66BE3 #DA9FED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B238D9#FFFFFF#000000##FFFFFF
##B238D91.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)
#006CDD
Deuteranopia (green-blind)
#3877D5
Tritanopia (blue-blind)
#B05B86
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b238d9;
/* rgb */ color: rgb(178, 56, 217);
/* oklch */ color: oklch(58.8% 0.241 316.4);
Tailwind
colors: {
  custom: {
    50: '#ce7be6',
    500: '#b238d9',
    950: '#000000',
  },
}
SCSS
$custom: #b238d9;
$custom-light: #ce7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#b238d9",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 285.466,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58848,
    "c": 0.24068,
    "h": 316.4
  },
  "luminance": 0.17303
}

Semantic roles & 50–950 ramp

primary
#B238D9
secondary
#A5D994
accent
#EB3D67
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B238D9

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

Preview Lab → · Contrast checker → · Palette generator →

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