#C538B2#C538B2

#C538B2 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.3% C 0.218 H 334.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#C538B2
RGBrgb(197, 56, 178)
HSLhsl(308, 56%, 50%)
HSVhsv(308, 72%, 77%)
CMYKcmyk(0%, 71.6%, 9.6%, 22.7%)
CIE-LABlab(49.39, 67.68, -34.96)
CIE-LCHlch(49.39, 76.18, 332.68°)
OKLaboklab(59.26% 0.1963 -0.0957)
OKLCHoklch(59.26% 0.218 334)
XYZxyz(32.4763, 17.9158, 43.8585)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C538B2 #38C54B
analogous
#9238C5 #C538B2 #C5386C
triadic
#C538B2 #B2C538 #38B2C5
tetradic
#C538B2 #C59238 #38C54B #386CC5
square
#C538B2 #C59238 #38C54B #386CC5
split-complementary
#C538B2 #6CC538 #38C592
monochromatic
#661D5C #952A87 #C538B2 #D467C5 #E196D7

Accessibility & contrast

On white

4.58
#C538B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C538B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C538B2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C538B2#FFFFFF#000000##000000
##C538B21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#687DAF
Tritanopia (blue-blind)
#CE4571
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c538b2;
/* rgb */ color: rgb(197, 56, 178);
/* oklch */ color: oklch(59.3% 0.218 334.0);
Tailwind
colors: {
  custom: {
    50: '#da7cc9',
    500: '#c538b2',
    950: '#000000',
  },
}
SCSS
$custom: #c538b2;
$custom-light: #da7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c538b2",
  "rgb": {
    "r": 197,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 308.085,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.21841,
    "h": 334
  },
  "luminance": 0.17913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C538B2

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

Preview Lab → · Contrast checker → · Palette generator →

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