#C338B2#C338B2

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

Color values

HEX#C338B2
RGBrgb(195, 56, 178)
HSLhsl(307, 55%, 49%)
HSVhsv(307, 71%, 76%)
CMYKcmyk(0%, 71.3%, 8.7%, 23.5%)
CIE-LABlab(49.07, 67.22, -35.50)
CIE-LCHlch(49.07, 76.02, 332.16°)
OKLaboklab(58.96% 0.1943 -0.0973)
OKLCHoklch(58.96% 0.217 333.4)
XYZxyz(31.9559, 17.6475, 43.8341)
Luminance0.1764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B2 #38C349
analogous
#8F38C3 #C338B2 #C3386D
triadic
#C338B2 #B2C338 #38B2C3
tetradic
#C338B2 #C38F38 #38C349 #386DC3
square
#C338B2 #C38F38 #38C349 #386DC3
split-complementary
#C338B2 #6DC338 #38C38F
monochromatic
#641D5B #932A87 #C338B2 #D365C5 #E195D7

Accessibility & contrast

On white

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

On black

4.53
#C338B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C338B2#FFFFFF#000000##FFFFFF
##C338B21.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#CC4571
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b2;
/* rgb */ color: rgb(195, 56, 178);
/* oklch */ color: oklch(59.0% 0.217 333.4);
Tailwind
colors: {
  custom: {
    50: '#d97bc9',
    500: '#c338b2',
    950: '#000000',
  },
}
SCSS
$custom: #c338b2;
$custom-light: #d97bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b2",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 307.338,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58957,
    "c": 0.21731,
    "h": 333.4
  },
  "luminance": 0.17645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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