#C231B7#C231B7

#C231B7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.228 H 331.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#C231B7
RGBrgb(194, 49, 183)
HSLhsl(305, 60%, 48%)
HSVhsv(305, 75%, 76%)
CMYKcmyk(0%, 74.7%, 5.7%, 23.9%)
CIE-LABlab(48.37, 69.99, -39.53)
CIE-LCHlch(48.37, 80.38, 330.54°)
OKLaboklab(58.51% 0.2001 -0.1089)
OKLCHoklch(58.51% 0.228 331.4)
XYZxyz(31.8937, 17.0875, 46.4090)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C231B7 #31C23C
analogous
#8531C2 #C231B7 #C2316E
triadic
#C231B7 #B7C231 #31B7C2
tetradic
#C231B7 #C28531 #31C23C #316EC2
square
#C231B7 #C28531 #31C23C #316EC2
split-complementary
#C231B7 #6EC231 #31C285
monochromatic
#60185B #912589 #C231B7 #D65BCC #E28CDB

Accessibility & contrast

On white

4.75
#C231B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#C231B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C231B7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C231B7#FFFFFF#000000##FFFFFF
##C231B71.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BB
Deuteranopia (green-blind)
#607AB4
Tritanopia (blue-blind)
#CA4372
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c231b7;
/* rgb */ color: rgb(194, 49, 183);
/* oklch */ color: oklch(58.5% 0.228 331.4);
Tailwind
colors: {
  custom: {
    50: '#d879cd',
    500: '#c231b7',
    950: '#000000',
  },
}
SCSS
$custom: #c231b7;
$custom-light: #d879cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c231b7",
  "rgb": {
    "r": 194,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 304.552,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58508,
    "c": 0.22779,
    "h": 331.4
  },
  "luminance": 0.17085
}

Semantic roles & 50–950 ramp

primary
#C231B7
secondary
#83CC88
accent
#E35145
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C231B7

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

Preview Lab → · Contrast checker → · Palette generator →

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