#B231C8#B231C8

#B231C8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.2% C 0.234 H 321.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B231C8
RGBrgb(178, 49, 200)
HSLhsl(291, 61%, 49%)
HSVhsv(291, 76%, 78%)
CMYKcmyk(11%, 75.5%, 0%, 21.6%)
CIE-LABlab(46.76, 69.49, -52.15)
CIE-LCHlch(46.76, 86.88, 323.11°)
OKLaboklab(57.17% 0.1824 -0.1461)
OKLCHoklch(57.17% 0.234 321.3)
XYZxyz(29.8826, 15.8334, 56.1145)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B231C8 #47C831
analogous
#6731C8 #B231C8 #C83193
triadic
#B231C8 #C8B231 #31C8B2
tetradic
#B231C8 #C86731 #47C831 #3193C8
square
#B231C8 #C86731 #47C831 #3193C8
split-complementary
#B231C8 #93C831 #31C867
monochromatic
#5B1966 #862597 #B231C8 #C65FD8 #D790E4

Accessibility & contrast

On white

5.04
#B231C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B231C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B231C8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B231C8#FFFFFF#000000##FFFFFF
##B231C81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#4473C5
Tritanopia (blue-blind)
#B34F7B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b231c8;
/* rgb */ color: rgb(178, 49, 200);
/* oklch */ color: oklch(57.2% 0.234 321.3);
Tailwind
colors: {
  custom: {
    50: '#cd77d9',
    500: '#b231c8',
    950: '#000000',
  },
}
SCSS
$custom: #b231c8;
$custom-light: #cd77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b231c8",
  "rgb": {
    "r": 178,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 291.258,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57168,
    "c": 0.23363,
    "h": 321.3
  },
  "luminance": 0.15832
}

Semantic roles & 50–950 ramp

primary
#B231C8
secondary
#91CE86
accent
#E4445B
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B231C8

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

Preview Lab → · Contrast checker → · Palette generator →

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