#B238B2#B238B2

#B238B2 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.208 H 327.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B238B2
RGBrgb(178, 56, 178)
HSLhsl(300, 52%, 46%)
HSVhsv(300, 69%, 70%)
CMYKcmyk(0%, 68.5%, 0%, 30.2%)
CIE-LABlab(46.32, 63.30, -40.00)
CIE-LCHlch(46.32, 74.88, 327.71°)
OKLaboklab(56.45% 0.1765 -0.1107)
OKLCHoklch(56.45% 0.208 327.9)
XYZxyz(27.8098, 15.5096, 43.6398)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238B2 #38B238
analogous
#7538B2 #B238B2 #B23875
triadic
#B238B2 #B2B238 #38B2B2
tetradic
#B238B2 #B27538 #38B238 #3875B2
square
#B238B2 #B27538 #38B238 #3875B2
split-complementary
#B238B2 #75B238 #38B275
monochromatic
#551B55 #832983 #B238B2 #CC5CCC #DA8ADA

Accessibility & contrast

On white

5.12
#B238B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B238B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B238B2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238B2#FFFFFF#000000##FFFFFF
##B238B21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#B74A71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b238b2;
/* rgb */ color: rgb(178, 56, 178);
/* oklch */ color: oklch(56.5% 0.208 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd79c9',
    500: '#b238b2',
    950: '#000000',
  },
}
SCSS
$custom: #b238b2;
$custom-light: #cd79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b238b2",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 300,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.20834,
    "h": 327.9
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#B238B2
secondary
#81C581
accent
#DC4C4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B238B2

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

Preview Lab → · Contrast checker → · Palette generator →

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