#C338B6#C338B6

#C338B6 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.2% C 0.220 H 332.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C338B6
RGBrgb(195, 56, 182)
HSLhsl(306, 55%, 49%)
HSVhsv(306, 71%, 76%)
CMYKcmyk(0%, 71.3%, 6.7%, 23.5%)
CIE-LABlab(49.27, 67.83, -37.52)
CIE-LCHlch(49.27, 77.52, 331.05°)
OKLaboklab(59.17% 0.1946 -0.1031)
OKLCHoklch(59.17% 0.22 332.1)
XYZxyz(32.3634, 17.8105, 45.9801)
Luminance0.1781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B6 #38C345
analogous
#8B38C3 #C338B6 #C33870
triadic
#C338B6 #B6C338 #38B6C3
tetradic
#C338B6 #C38B38 #38C345 #3870C3
square
#C338B6 #C38B38 #38C345 #3870C3
split-complementary
#C338B6 #70C338 #38C38B
monochromatic
#641D5D #932A8A #C338B6 #D365C9 #E195D9

Accessibility & contrast

On white

4.60
#C338B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#C338B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C338B6
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B6#FFFFFF#000000##FFFFFF
##C338B61.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#647CB3
Tritanopia (blue-blind)
#CB4773
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b6;
/* rgb */ color: rgb(195, 56, 182);
/* oklch */ color: oklch(59.2% 0.220 332.1);
Tailwind
colors: {
  custom: {
    50: '#d97ccc',
    500: '#c338b6',
    950: '#000000',
  },
}
SCSS
$custom: #c338b6;
$custom-light: #d97ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b6",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 305.612,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59165,
    "c": 0.22022,
    "h": 332.1
  },
  "luminance": 0.17808
}

Semantic roles & 50–950 ramp

primary
#C338B6
secondary
#8BCC91
accent
#DF5749
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C338B6

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

Preview Lab → · Contrast checker → · Palette generator →

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