#C338B4#C338B4

#C338B4 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.1% C 0.219 H 332.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C338B4
RGBrgb(195, 56, 180)
HSLhsl(306, 55%, 49%)
HSVhsv(306, 71%, 76%)
CMYKcmyk(0%, 71.3%, 7.7%, 23.5%)
CIE-LABlab(49.16, 67.52, -36.51)
CIE-LCHlch(49.16, 76.76, 331.60°)
OKLaboklab(59.06% 0.1945 -0.1002)
OKLCHoklch(59.06% 0.219 332.7)
XYZxyz(32.1582, 17.7284, 44.8994)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B4 #38C347
analogous
#8D38C3 #C338B4 #C3386F
triadic
#C338B4 #B4C338 #38B4C3
tetradic
#C338B4 #C38D38 #38C347 #386FC3
square
#C338B4 #C38D38 #38C347 #386FC3
split-complementary
#C338B4 #6FC338 #38C38D
monochromatic
#641D5C #932A88 #C338B4 #D365C7 #E195D8

Accessibility & contrast

On white

4.62
#C338B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#C338B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C338B4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B4#FFFFFF#000000##FFFFFF
##C338B41.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#657CB1
Tritanopia (blue-blind)
#CC4672
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b4;
/* rgb */ color: rgb(195, 56, 180);
/* oklch */ color: oklch(59.1% 0.219 332.7);
Tailwind
colors: {
  custom: {
    50: '#d97bcb',
    500: '#c338b4',
    950: '#000000',
  },
}
SCSS
$custom: #c338b4;
$custom-light: #d97bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b4",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 306.475,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5906,
    "c": 0.21876,
    "h": 332.7
  },
  "luminance": 0.17726
}

Semantic roles & 50–950 ramp

primary
#C338B4
secondary
#8BCC92
accent
#DF5949
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C338B4

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

Preview Lab → · Contrast checker → · Palette generator →

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