#B235AF#B235AF

#B235AF is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.209 H 329.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B235AF
RGBrgb(178, 53, 175)
HSLhsl(301, 54%, 45%)
HSVhsv(301, 70%, 70%)
CMYKcmyk(0%, 70.2%, 1.7%, 30.2%)
CIE-LABlab(45.78, 63.88, -39.09)
CIE-LCHlch(45.78, 74.89, 328.53°)
OKLaboklab(56.01% 0.1795 -0.108)
OKLCHoklch(56.01% 0.21 329)
XYZxyz(27.3708, 15.1083, 42.0237)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B235AF #35B238
analogous
#7635B2 #B235AF #B23570
triadic
#B235AF #AFB235 #35AFB2
tetradic
#B235AF #B27635 #35B238 #3570B2
square
#B235AF #B27635 #35B238 #3570B2
split-complementary
#B235AF #70B235 #35B276
monochromatic
#541952 #832781 #B235AF #CD57CA #DB86D9

Accessibility & contrast

On white

5.22
#B235AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B235AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B235AF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B235AF#FFFFFF#000000##FFFFFF
##B235AF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#5872AC
Tritanopia (blue-blind)
#B8466E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b235af;
/* rgb */ color: rgb(178, 53, 175);
/* oklch */ color: oklch(56.0% 0.209 329.0);
Tailwind
colors: {
  custom: {
    50: '#cd78c7',
    500: '#b235af',
    950: '#000000',
  },
}
SCSS
$custom: #b235af;
$custom-light: #cd78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b235af",
  "rgb": {
    "r": 178,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 301.44,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5601,
    "c": 0.2095,
    "h": 329
  },
  "luminance": 0.15106
}

Semantic roles & 50–950 ramp

primary
#B235AF
secondary
#7EC580
accent
#DD4E4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B235AF

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

Preview Lab → · Contrast checker → · Palette generator →

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