#B031CA#B031CA

#B031CA is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.0% C 0.234 H 320.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B031CA
RGBrgb(176, 49, 202)
HSLhsl(290, 61%, 49%)
HSVhsv(290, 76%, 79%)
CMYKcmyk(12.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(46.57, 69.46, -53.62)
CIE-LCHlch(46.57, 87.75, 322.33°)
OKLaboklab(57.01% 0.1799 -0.1504)
OKLCHoklch(57.01% 0.234 320.1)
XYZxyz(29.6622, 15.6925, 57.3322)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B031CA #4BCA31
analogous
#6431CA #B031CA #CA3198
triadic
#B031CA #CAB031 #31CAB0
tetradic
#B031CA #CA6431 #4BCA31 #3198CA
square
#B031CA #CA6431 #4BCA31 #3198CA
split-complementary
#B031CA #98CA31 #31CA64
monochromatic
#5A1967 #852599 #B031CA #C460D8 #D691E4

Accessibility & contrast

On white

5.07
#B031CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B031CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B031CA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B031CA#FFFFFF#000000##FFFFFF
##B031CA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#4073C7
Tritanopia (blue-blind)
#B1517C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b031ca;
/* rgb */ color: rgb(176, 49, 202);
/* oklch */ color: oklch(57.0% 0.234 320.1);
Tailwind
colors: {
  custom: {
    50: '#cc77db',
    500: '#b031ca',
    950: '#000000',
  },
}
SCSS
$custom: #b031ca;
$custom-light: #cc77db;
$custom-dark: #000000;
JSON
{
  "hex": "#b031ca",
  "rgb": {
    "r": 176,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 289.804,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57014,
    "c": 0.23447,
    "h": 320.1
  },
  "luminance": 0.15691
}

Semantic roles & 50–950 ramp

primary
#B031CA
secondary
#94CF88
accent
#E4445F
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B031CA

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

Preview Lab → · Contrast checker → · Palette generator →

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