#C338B1#C338B1

#C338B1 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.217 H 333.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C338B1
RGBrgb(195, 56, 177)
HSLhsl(308, 55%, 49%)
HSVhsv(308, 71%, 76%)
CMYKcmyk(0%, 71.3%, 9.2%, 23.5%)
CIE-LABlab(49.02, 67.07, -34.99)
CIE-LCHlch(49.02, 75.65, 332.45°)
OKLaboklab(58.9% 0.1943 -0.0958)
OKLCHoklch(58.9% 0.217 333.7)
XYZxyz(31.8559, 17.6075, 43.3073)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B1 #38C34A
analogous
#9038C3 #C338B1 #C3386C
triadic
#C338B1 #B1C338 #38B1C3
tetradic
#C338B1 #C39038 #38C34A #386CC3
square
#C338B1 #C39038 #38C34A #386CC3
split-complementary
#C338B1 #6CC338 #38C390
monochromatic
#641D5B #932A86 #C338B1 #D365C5 #E195D7

Accessibility & contrast

On white

4.64
#C338B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#C338B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C338B1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B1#FFFFFF#000000##FFFFFF
##C338B11.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B4
Deuteranopia (green-blind)
#677CAE
Tritanopia (blue-blind)
#CC4570
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c338b1;
/* rgb */ color: rgb(195, 56, 177);
/* oklch */ color: oklch(58.9% 0.217 333.7);
Tailwind
colors: {
  custom: {
    50: '#d97bc8',
    500: '#c338b1',
    950: '#000000',
  },
}
SCSS
$custom: #c338b1;
$custom-light: #d97bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b1",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 307.77,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58905,
    "c": 0.2166,
    "h": 333.7
  },
  "luminance": 0.17605
}

Semantic roles & 50–950 ramp

primary
#C338B1
secondary
#8BCC93
accent
#DF5C49
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C338B1

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

Preview Lab → · Contrast checker → · Palette generator →

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