#C338B5#C338B5

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

Color values

HEX#C338B5
RGBrgb(195, 56, 181)
HSLhsl(306, 55%, 49%)
HSVhsv(306, 71%, 76%)
CMYKcmyk(0%, 71.3%, 7.2%, 23.5%)
CIE-LABlab(49.22, 67.68, -37.02)
CIE-LCHlch(49.22, 77.14, 331.32°)
OKLaboklab(59.11% 0.1945 -0.1017)
OKLCHoklch(59.11% 0.219 332.4)
XYZxyz(32.2604, 17.7693, 45.4378)
Luminance0.1777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B5 #38C346
analogous
#8C38C3 #C338B5 #C33870
triadic
#C338B5 #B5C338 #38B5C3
tetradic
#C338B5 #C38C38 #38C346 #3870C3
square
#C338B5 #C38C38 #38C346 #3870C3
split-complementary
#C338B5 #70C338 #38C38C
monochromatic
#641D5D #932A89 #C338B5 #D365C8 #E195D9

Accessibility & contrast

On white

4.61
#C338B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C338B5
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B5#FFFFFF#000000##FFFFFF
##C338B51.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#657CB2
Tritanopia (blue-blind)
#CB4773
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b5;
/* rgb */ color: rgb(195, 56, 181);
/* oklch */ color: oklch(59.1% 0.219 332.4);
Tailwind
colors: {
  custom: {
    50: '#d97bcb',
    500: '#c338b5',
    950: '#000000',
  },
}
SCSS
$custom: #c338b5;
$custom-light: #d97bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b5",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 306.043,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59113,
    "c": 0.21948,
    "h": 332.4
  },
  "luminance": 0.17767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338B5

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

Preview Lab → · Contrast checker → · Palette generator →

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