#B238A2#B238A2

#B238A2 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.6% C 0.196 H 333.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B238A2
RGBrgb(178, 56, 162)
HSLhsl(308, 52%, 46%)
HSVhsv(308, 69%, 70%)
CMYKcmyk(0%, 68.5%, 9%, 30.2%)
CIE-LABlab(45.50, 60.70, -31.83)
CIE-LCHlch(45.50, 68.54, 332.33°)
OKLaboklab(55.59% 0.1756 -0.0871)
OKLCHoklch(55.59% 0.196 333.6)
XYZxyz(26.2960, 14.9041, 35.6672)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238A2 #38B248
analogous
#8538B2 #B238A2 #B23865
triadic
#B238A2 #A2B238 #38A2B2
tetradic
#B238A2 #B28538 #38B248 #3865B2
square
#B238A2 #B28538 #38B248 #3865B2
split-complementary
#B238A2 #65B238 #38B285
monochromatic
#551B4D #832978 #B238A2 #CC5CBD #DA8AD0

Accessibility & contrast

On white

5.28
#B238A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B238A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238A2
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238A2#FFFFFF#000000##FFFFFF
##B238A21.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#BA4268
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b238a2;
/* rgb */ color: rgb(178, 56, 162);
/* oklch */ color: oklch(55.6% 0.196 333.6);
Tailwind
colors: {
  custom: {
    50: '#cc79be',
    500: '#b238a2',
    950: '#000000',
  },
}
SCSS
$custom: #b238a2;
$custom-light: #cc79be;
$custom-dark: #000000;
JSON
{
  "hex": "#b238a2",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 307.869,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55592,
    "c": 0.19597,
    "h": 333.6
  },
  "luminance": 0.14902
}

Semantic roles & 50–950 ramp

primary
#B238A2
secondary
#81C58A
accent
#DC5F4C
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B238A2

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

Preview Lab → · Contrast checker → · Palette generator →

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