#B229A2#B229A2

#B229A2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.213 H 333.5°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#B229A2
RGBrgb(178, 41, 162)
HSLhsl(307, 63%, 43%)
HSVhsv(307, 77%, 70%)
CMYKcmyk(0%, 77%, 9%, 30.2%)
CIE-LABlab(43.74, 65.70, -34.60)
CIE-LCHlch(43.74, 74.25, 332.23°)
OKLaboklab(54.33% 0.1902 -0.0949)
OKLCHoklch(54.33% 0.213 333.5)
XYZxyz(25.6748, 13.6617, 35.4602)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B229A2 #29B239
analogous
#7D29B2 #B229A2 #B2295E
triadic
#B229A2 #A2B229 #29A2B2
tetradic
#B229A2 #B27D29 #29B239 #295EB2
square
#B229A2 #B27D29 #29B239 #295EB2
split-complementary
#B229A2 #5EB229 #29B27D
monochromatic
#4F1247 #801E75 #B229A2 #D444C3 #DF76D3

Accessibility & contrast

On white

5.63
#B229A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B229A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B229A2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B229A2#FFFFFF#000000##FFFFFF
##B229A21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#596E9F
Tritanopia (blue-blind)
#BA3864
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b229a2;
/* rgb */ color: rgb(178, 41, 162);
/* oklch */ color: oklch(54.3% 0.213 333.5);
Tailwind
colors: {
  custom: {
    50: '#cd72be',
    500: '#b229a2',
    950: '#000000',
  },
}
SCSS
$custom: #b229a2;
$custom-light: #cd72be;
$custom-dark: #000000;
JSON
{
  "hex": "#b229a2",
  "rgb": {
    "r": 178,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 307.007,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54325,
    "c": 0.21257,
    "h": 333.5
  },
  "luminance": 0.13659
}

Semantic roles & 50–950 ramp

primary
#B229A2
secondary
#70C77A
accent
#E65542
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B229A2

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

Preview Lab → · Contrast checker → · Palette generator →

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