#B238CC#B238CC

#B238CC is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.230 H 319.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#B238CC
RGBrgb(178, 56, 204)
HSLhsl(289, 59%, 51%)
HSVhsv(289, 73%, 80%)
CMYKcmyk(12.7%, 72.5%, 0%, 20%)
CIE-LABlab(47.82, 67.86, -52.75)
CIE-LCHlch(47.82, 85.95, 322.14°)
OKLaboklab(58.01% 0.1758 -0.1479)
OKLCHoklch(58.01% 0.23 319.9)
XYZxyz(30.6720, 16.6545, 58.7141)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238CC #52CC38
analogous
#6838CC #B238CC #CC389C
triadic
#B238CC #CCB238 #38CCB2
tetradic
#B238CC #CC6838 #52CC38 #389CCC
square
#B238CC #CC6838 #52CC38 #389CCC
split-complementary
#B238CC #9CCC38 #38CC68
monochromatic
#5F1C6E #8A299E #B238CC #C569D8 #D899E5

Accessibility & contrast

On white

4.85
#B238CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#B238CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238CC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238CC#FFFFFF#000000##FFFFFF
##B238CC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#4576C9
Tritanopia (blue-blind)
#B2557F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b238cc;
/* rgb */ color: rgb(178, 56, 204);
/* oklch */ color: oklch(58.0% 0.230 319.9);
Tailwind
colors: {
  custom: {
    50: '#cd7adc',
    500: '#b238cc',
    950: '#000000',
  },
}
SCSS
$custom: #b238cc;
$custom-light: #cd7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#b238cc",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 289.459,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58005,
    "c": 0.22968,
    "h": 319.9
  },
  "luminance": 0.16653
}

Semantic roles & 50–950 ramp

primary
#B238CC
secondary
#9BD18F
accent
#E24561
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B238CC

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

Preview Lab → · Contrast checker → · Palette generator →

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