#C538B1#C538B1

#C538B1 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.218 H 334.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C538B1
RGBrgb(197, 56, 177)
HSLhsl(309, 56%, 50%)
HSVhsv(309, 72%, 77%)
CMYKcmyk(0%, 71.6%, 10.2%, 22.7%)
CIE-LABlab(49.35, 67.53, -34.45)
CIE-LCHlch(49.35, 75.81, 332.98°)
OKLaboklab(59.21% 0.1963 -0.0942)
OKLCHoklch(59.21% 0.218 334.4)
XYZxyz(32.3762, 17.8758, 43.3317)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C538B1 #38C54C
analogous
#9338C5 #C538B1 #C5386A
triadic
#C538B1 #B1C538 #38B1C5
tetradic
#C538B1 #C59338 #38C54C #386AC5
square
#C538B1 #C59338 #38C54C #386AC5
split-complementary
#C538B1 #6AC538 #38C593
monochromatic
#661D5B #952A86 #C538B1 #D467C4 #E196D7

Accessibility & contrast

On white

4.59
#C538B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#C538B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C538B1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C538B1#FFFFFF#000000##FFFFFF
##C538B11.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#687DAE
Tritanopia (blue-blind)
#CE4471
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c538b1;
/* rgb */ color: rgb(197, 56, 177);
/* oklch */ color: oklch(59.2% 0.218 334.4);
Tailwind
colors: {
  custom: {
    50: '#da7cc8',
    500: '#c538b1',
    950: '#000000',
  },
}
SCSS
$custom: #c538b1;
$custom-light: #da7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c538b1",
  "rgb": {
    "r": 197,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 308.511,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59205,
    "c": 0.2177,
    "h": 334.4
  },
  "luminance": 0.17873
}

Semantic roles & 50–950 ramp

primary
#C538B1
secondary
#8CCD95
accent
#DF5E49
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C538B1

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

Preview Lab → · Contrast checker → · Palette generator →

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