#B238A8#B238A8

#B238A8 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.201 H 331.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B238A8
RGBrgb(178, 56, 168)
HSLhsl(305, 52%, 46%)
HSVhsv(305, 69%, 70%)
CMYKcmyk(0%, 68.5%, 5.6%, 30.2%)
CIE-LABlab(45.80, 61.66, -34.92)
CIE-LCHlch(45.80, 70.86, 330.47°)
OKLaboklab(55.91% 0.176 -0.096)
OKLCHoklch(55.91% 0.201 331.4)
XYZxyz(26.8421, 15.1226, 38.5434)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238A8 #38B242
analogous
#7F38B2 #B238A8 #B2386B
triadic
#B238A8 #A8B238 #38A8B2
tetradic
#B238A8 #B27F38 #38B242 #386BB2
square
#B238A8 #B27F38 #38B242 #386BB2
split-complementary
#B238A8 #6BB238 #38B27F
monochromatic
#551B50 #83297C #B238A8 #CC5CC2 #DA8AD4

Accessibility & contrast

On white

5.22
#B238A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B238A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238A8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238A8#FFFFFF#000000##FFFFFF
##B238A81.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#B9456B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b238a8;
/* rgb */ color: rgb(178, 56, 168);
/* oklch */ color: oklch(55.9% 0.201 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc79c2',
    500: '#b238a8',
    950: '#000000',
  },
}
SCSS
$custom: #b238a8;
$custom-light: #cc79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b238a8",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 304.918,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55906,
    "c": 0.20052,
    "h": 331.4
  },
  "luminance": 0.1512
}

Semantic roles & 50–950 ramp

primary
#B238A8
secondary
#81C587
accent
#DC584C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B238A8

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

Preview Lab → · Contrast checker → · Palette generator →

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