#B238B0#B238B0

#B238B0 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.3% C 0.207 H 328.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#B238B0
RGBrgb(178, 56, 176)
HSLhsl(301, 52%, 46%)
HSVhsv(301, 69%, 70%)
CMYKcmyk(0%, 68.5%, 1.1%, 30.2%)
CIE-LABlab(46.22, 62.96, -39.00)
CIE-LCHlch(46.22, 74.06, 328.23°)
OKLaboklab(56.34% 0.1764 -0.1078)
OKLCHoklch(56.34% 0.207 328.6)
XYZxyz(27.6104, 15.4299, 42.5899)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238B0 #38B23A
analogous
#7738B2 #B238B0 #B23873
triadic
#B238B0 #B0B238 #38B0B2
tetradic
#B238B0 #B27738 #38B23A #3873B2
square
#B238B0 #B27738 #38B23A #3873B2
split-complementary
#B238B0 #73B238 #38B277
monochromatic
#551B54 #832982 #B238B0 #CC5CCA #DA8AD9

Accessibility & contrast

On white

5.14
#B238B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#B238B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238B0
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238B0#FFFFFF#000000##FFFFFF
##B238B01.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B3
Deuteranopia (green-blind)
#5873AD
Tritanopia (blue-blind)
#B84970
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238b0;
/* rgb */ color: rgb(178, 56, 176);
/* oklch */ color: oklch(56.3% 0.207 328.6);
Tailwind
colors: {
  custom: {
    50: '#cc79c8',
    500: '#b238b0',
    950: '#000000',
  },
}
SCSS
$custom: #b238b0;
$custom-light: #cc79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b238b0",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 300.984,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5634,
    "c": 0.20675,
    "h": 328.6
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#B238B0
secondary
#81C582
accent
#DC4F4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238B0

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

Preview Lab → · Contrast checker → · Palette generator →

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