#B238AE#B238AE

#B238AE is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.205 H 329.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B238AE
RGBrgb(178, 56, 174)
HSLhsl(302, 52%, 46%)
HSVhsv(302, 69%, 70%)
CMYKcmyk(0%, 68.5%, 2.2%, 30.2%)
CIE-LABlab(46.11, 62.63, -37.98)
CIE-LCHlch(46.11, 73.25, 328.77°)
OKLaboklab(56.23% 0.1764 -0.1048)
OKLCHoklch(56.23% 0.205 329.3)
XYZxyz(27.4140, 15.3513, 41.5554)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AE #38B23C
analogous
#7938B2 #B238AE #B23871
triadic
#B238AE #AEB238 #38AEB2
tetradic
#B238AE #B27938 #38B23C #3871B2
square
#B238AE #B27938 #38B23C #3871B2
split-complementary
#B238AE #71B238 #38B279
monochromatic
#551B53 #832980 #B238AE #CC5CC8 #DA8AD8

Accessibility & contrast

On white

5.16
#B238AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B238AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238AE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AE#FFFFFF#000000##FFFFFF
##B238AE1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B1
Deuteranopia (green-blind)
#5A73AB
Tritanopia (blue-blind)
#B8486F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238ae;
/* rgb */ color: rgb(178, 56, 174);
/* oklch */ color: oklch(56.2% 0.205 329.3);
Tailwind
colors: {
  custom: {
    50: '#cc79c6',
    500: '#b238ae',
    950: '#000000',
  },
}
SCSS
$custom: #b238ae;
$custom-light: #cc79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#b238ae",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 301.967,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.20518,
    "h": 329.3
  },
  "luminance": 0.15349
}

Semantic roles & 50–950 ramp

primary
#B238AE
secondary
#81C583
accent
#DC514C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238AE

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

Preview Lab → · Contrast checker → · Palette generator →

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