#C338B9#C338B9

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

Color values

HEX#C338B9
RGBrgb(195, 56, 185)
HSLhsl(304, 55%, 49%)
HSVhsv(304, 71%, 76%)
CMYKcmyk(0%, 71.3%, 5.1%, 23.5%)
CIE-LABlab(49.42, 68.30, -39.03)
CIE-LCHlch(49.42, 78.66, 330.25°)
OKLaboklab(59.33% 0.1947 -0.1075)
OKLCHoklch(59.33% 0.222 331.1)
XYZxyz(32.6768, 17.9358, 47.6305)
Luminance0.1793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B9 #38C342
analogous
#8838C3 #C338B9 #C33873
triadic
#C338B9 #B9C338 #38B9C3
tetradic
#C338B9 #C38838 #38C342 #3873C3
square
#C338B9 #C38838 #38C342 #3873C3
split-complementary
#C338B9 #73C338 #38C388
monochromatic
#641D5F #932A8C #C338B9 #D365CB #E195DB

Accessibility & contrast

On white

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

On black

4.59
#C338B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C338B9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B9#FFFFFF#000000##000000
##C338B91.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#637CB6
Tritanopia (blue-blind)
#CB4875
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b9;
/* rgb */ color: rgb(195, 56, 185);
/* oklch */ color: oklch(59.3% 0.222 331.1);
Tailwind
colors: {
  custom: {
    50: '#d97cce',
    500: '#c338b9',
    950: '#000000',
  },
}
SCSS
$custom: #c338b9;
$custom-light: #d97cce;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b9",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 304.317,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59325,
    "c": 0.22241,
    "h": 331.1
  },
  "luminance": 0.17933
}

Semantic roles & 50–950 ramp

primary
#C338B9
secondary
#8BCC90
accent
#DF5449
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C338B9

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

Preview Lab → · Contrast checker → · Palette generator →

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