#C338B8#C338B8

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

Color values

HEX#C338B8
RGBrgb(195, 56, 184)
HSLhsl(305, 55%, 49%)
HSVhsv(305, 71%, 76%)
CMYKcmyk(0%, 71.3%, 5.6%, 23.5%)
CIE-LABlab(49.37, 68.14, -38.53)
CIE-LCHlch(49.37, 78.28, 330.51°)
OKLaboklab(59.27% 0.1947 -0.106)
OKLCHoklch(59.27% 0.222 331.4)
XYZxyz(32.5716, 17.8937, 47.0765)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B8 #38C343
analogous
#8938C3 #C338B8 #C33873
triadic
#C338B8 #B8C338 #38B8C3
tetradic
#C338B8 #C38938 #38C343 #3873C3
square
#C338B8 #C38938 #38C343 #3873C3
split-complementary
#C338B8 #73C338 #38C389
monochromatic
#641D5E #932A8B #C338B8 #D365CA #E195DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C338B8#FFFFFF#000000##FFFFFF
##C338B81.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BC
Deuteranopia (green-blind)
#637CB5
Tritanopia (blue-blind)
#CB4874
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b8;
/* rgb */ color: rgb(195, 56, 184);
/* oklch */ color: oklch(59.3% 0.222 331.4);
Tailwind
colors: {
  custom: {
    50: '#d97cce',
    500: '#c338b8',
    950: '#000000',
  },
}
SCSS
$custom: #c338b8;
$custom-light: #d97cce;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b8",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 304.748,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59271,
    "c": 0.22168,
    "h": 331.4
  },
  "luminance": 0.17891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338B8

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

Preview Lab → · Contrast checker → · Palette generator →

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