#B238AF#B238AF

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

Color values

HEX#B238AF
RGBrgb(178, 56, 175)
HSLhsl(301, 52%, 46%)
HSVhsv(301, 69%, 70%)
CMYKcmyk(0%, 68.5%, 1.7%, 30.2%)
CIE-LABlab(46.16, 62.80, -38.49)
CIE-LCHlch(46.16, 73.65, 328.50°)
OKLaboklab(56.29% 0.1764 -0.1063)
OKLCHoklch(56.29% 0.206 328.9)
XYZxyz(27.5119, 15.3905, 42.0707)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238AF #38B23B
analogous
#7838B2 #B238AF #B23872
triadic
#B238AF #AFB238 #38AFB2
tetradic
#B238AF #B27838 #38B23B #3872B2
square
#B238AF #B27838 #38B23B #3872B2
split-complementary
#B238AF #72B238 #38B278
monochromatic
#551B53 #832981 #B238AF #CC5CC9 #DA8AD8

Accessibility & contrast

On white

5.15
#B238AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#B238AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238AF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238AF#FFFFFF#000000##FFFFFF
##B238AF1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#5973AC
Tritanopia (blue-blind)
#B8486F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b238af;
/* rgb */ color: rgb(178, 56, 175);
/* oklch */ color: oklch(56.3% 0.206 328.9);
Tailwind
colors: {
  custom: {
    50: '#cc79c7',
    500: '#b238af',
    950: '#000000',
  },
}
SCSS
$custom: #b238af;
$custom-light: #cc79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b238af",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 301.475,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.20597,
    "h": 328.9
  },
  "luminance": 0.15388
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B238AF

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

Preview Lab → · Contrast checker → · Palette generator →

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