#C338BA#C338BA

#C338BA is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.4% C 0.223 H 330.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C338BA
RGBrgb(195, 56, 186)
HSLhsl(304, 55%, 49%)
HSVhsv(304, 71%, 76%)
CMYKcmyk(0%, 71.3%, 4.6%, 23.5%)
CIE-LABlab(49.47, 68.45, -39.53)
CIE-LCHlch(49.47, 79.05, 329.99°)
OKLaboklab(59.38% 0.1948 -0.1089)
OKLCHoklch(59.38% 0.223 330.8)
XYZxyz(32.7827, 17.9782, 48.1884)
Luminance0.1798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338BA #38C341
analogous
#8738C3 #C338BA #C33875
triadic
#C338BA #BAC338 #38BAC3
tetradic
#C338BA #C38738 #38C341 #3875C3
square
#C338BA #C38738 #38C341 #3875C3
split-complementary
#C338BA #75C338 #38C387
monochromatic
#641D5F #932A8D #C338BA #D365CC #E195DC

Accessibility & contrast

On white

4.57
#C338BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#C338BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C338BA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338BA#FFFFFF#000000##000000
##C338BA1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B69BE
Deuteranopia (green-blind)
#627CB7
Tritanopia (blue-blind)
#CB4975
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c338ba;
/* rgb */ color: rgb(195, 56, 186);
/* oklch */ color: oklch(59.4% 0.223 330.8);
Tailwind
colors: {
  custom: {
    50: '#d97ccf',
    500: '#c338ba',
    950: '#000000',
  },
}
SCSS
$custom: #c338ba;
$custom-light: #d97ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#c338ba",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 303.885,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.22316,
    "h": 330.8
  },
  "luminance": 0.17976
}

Semantic roles & 50–950 ramp

primary
#C338BA
secondary
#8BCC8F
accent
#DF5349
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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