#C238B7#C238B7

#C238B7 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.1% C 0.220 H 331.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C238B7
RGBrgb(194, 56, 183)
HSLhsl(305, 55%, 49%)
HSVhsv(305, 71%, 76%)
CMYKcmyk(0%, 71.1%, 5.7%, 23.9%)
CIE-LABlab(49.15, 67.76, -38.29)
CIE-LCHlch(49.15, 77.83, 330.53°)
OKLaboklab(59.07% 0.1936 -0.1054)
OKLCHoklch(59.07% 0.22 331.4)
XYZxyz(32.2095, 17.7191, 46.5143)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C238B7 #38C243
analogous
#8838C2 #C238B7 #C23872
triadic
#C238B7 #B7C238 #38B7C2
tetradic
#C238B7 #C28838 #38C243 #3872C2
square
#C238B7 #C28838 #38C243 #3872C2
split-complementary
#C238B7 #72C238 #38C288
monochromatic
#631D5D #932A8A #C238B7 #D265CA #E094DA

Accessibility & contrast

On white

4.62
#C238B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#C238B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C238B7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C238B7#FFFFFF#000000##FFFFFF
##C238B71.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#637CB4
Tritanopia (blue-blind)
#CA4874
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c238b7;
/* rgb */ color: rgb(194, 56, 183);
/* oklch */ color: oklch(59.1% 0.220 331.4);
Tailwind
colors: {
  custom: {
    50: '#d87bcd',
    500: '#c238b7',
    950: '#000000',
  },
}
SCSS
$custom: #c238b7;
$custom-light: #d87bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#c238b7",
  "rgb": {
    "r": 194,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 304.783,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5907,
    "c": 0.22042,
    "h": 331.4
  },
  "luminance": 0.17717
}

Semantic roles & 50–950 ramp

primary
#C238B7
secondary
#8ACB90
accent
#DF5549
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C238B7

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

Preview Lab → · Contrast checker → · Palette generator →

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