#B238CB#B238CB

#B238CB is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.229 H 320.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#B238CB
RGBrgb(178, 56, 203)
HSLhsl(290, 59%, 51%)
HSVhsv(290, 72%, 80%)
CMYKcmyk(12.3%, 72.4%, 0%, 20.4%)
CIE-LABlab(47.76, 67.68, -52.27)
CIE-LCHlch(47.76, 85.52, 322.32°)
OKLaboklab(57.94% 0.1758 -0.1465)
OKLCHoklch(57.94% 0.229 320.2)
XYZxyz(30.5524, 16.6067, 58.0844)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238CB #51CB38
analogous
#6838CB #B238CB #CB389A
triadic
#B238CB #CBB238 #38CBB2
tetradic
#B238CB #CB6838 #51CB38 #389ACB
square
#B238CB #CB6838 #51CB38 #389ACB
split-complementary
#B238CB #9ACB38 #38CB68
monochromatic
#5F1C6C #89299D #B238CB #C569D8 #D899E4

Accessibility & contrast

On white

4.86
#B238CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#B238CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238CB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238CB#FFFFFF#000000##FFFFFF
##B238CB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#4676C8
Tritanopia (blue-blind)
#B3557F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b238cb;
/* rgb */ color: rgb(178, 56, 203);
/* oklch */ color: oklch(57.9% 0.229 320.2);
Tailwind
colors: {
  custom: {
    50: '#cd7adb',
    500: '#b238cb',
    950: '#000000',
  },
}
SCSS
$custom: #b238cb;
$custom-light: #cd7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#b238cb",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 289.796,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57942,
    "c": 0.22884,
    "h": 320.2
  },
  "luminance": 0.16605
}

Semantic roles & 50–950 ramp

primary
#B238CB
secondary
#9AD08F
accent
#E24661
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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