#C338B7#C338B7

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

Color values

HEX#C338B7
RGBrgb(195, 56, 183)
HSLhsl(305, 55%, 49%)
HSVhsv(305, 71%, 76%)
CMYKcmyk(0%, 71.3%, 6.2%, 23.5%)
CIE-LABlab(49.32, 67.98, -38.03)
CIE-LCHlch(49.32, 77.90, 330.78°)
OKLaboklab(59.22% 0.1946 -0.1046)
OKLCHoklch(59.22% 0.221 331.7)
XYZxyz(32.4671, 17.8520, 46.5263)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B7 #38C344
analogous
#8A38C3 #C338B7 #C33872
triadic
#C338B7 #B7C338 #38B7C3
tetradic
#C338B7 #C38A38 #38C344 #3872C3
square
#C338B7 #C38A38 #38C344 #3872C3
split-complementary
#C338B7 #72C338 #38C38A
monochromatic
#641D5E #932A8A #C338B7 #D365C9 #E195DA

Accessibility & contrast

On white

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

On black

4.57
#C338B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C338B7#FFFFFF#000000##FFFFFF
##C338B71.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BB
Deuteranopia (green-blind)
#647CB4
Tritanopia (blue-blind)
#CB4874
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b7;
/* rgb */ color: rgb(195, 56, 183);
/* oklch */ color: oklch(59.2% 0.221 331.7);
Tailwind
colors: {
  custom: {
    50: '#d97ccd',
    500: '#c338b7',
    950: '#000000',
  },
}
SCSS
$custom: #c338b7;
$custom-light: #d97ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b7",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 305.18,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59218,
    "c": 0.22095,
    "h": 331.7
  },
  "luminance": 0.17849
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338B7

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

Preview Lab → · Contrast checker → · Palette generator →

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