#B238AA#B238AA

#B238AA is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.202 H 330.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B238AA
RGBrgb(178, 56, 170)
HSLhsl(304, 52%, 46%)
HSVhsv(304, 69%, 70%)
CMYKcmyk(0%, 68.5%, 4.5%, 30.2%)
CIE-LABlab(45.90, 61.98, -35.95)
CIE-LCHlch(45.90, 71.65, 329.89°)
OKLaboklab(56.01% 0.1762 -0.099)
OKLCHoklch(56.01% 0.202 330.7)
XYZxyz(27.0299, 15.1977, 39.5322)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AA #38B240
analogous
#7D38B2 #B238AA #B2386D
triadic
#B238AA #AAB238 #38AAB2
tetradic
#B238AA #B27D38 #38B240 #386DB2
square
#B238AA #B27D38 #38B240 #386DB2
split-complementary
#B238AA #6DB238 #38B27D
monochromatic
#551B51 #83297E #B238AA #CC5CC4 #DA8AD5

Accessibility & contrast

On white

5.20
#B238AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B238AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238AA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AA#FFFFFF#000000##FFFFFF
##B238AA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AD
Deuteranopia (green-blind)
#5C73A7
Tritanopia (blue-blind)
#B9466D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238aa;
/* rgb */ color: rgb(178, 56, 170);
/* oklch */ color: oklch(56.0% 0.202 330.7);
Tailwind
colors: {
  custom: {
    50: '#cc79c4',
    500: '#b238aa',
    950: '#000000',
  },
}
SCSS
$custom: #b238aa;
$custom-light: #cc79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b238aa",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 303.934,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56013,
    "c": 0.20206,
    "h": 330.7
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#B238AA
secondary
#81C586
accent
#DC564C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B238AA

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

Preview Lab → · Contrast checker → · Palette generator →

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