#C338B3#C338B3

#C338B3 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.0% C 0.218 H 333.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#C338B3
RGBrgb(195, 56, 179)
HSLhsl(307, 55%, 49%)
HSVhsv(307, 71%, 76%)
CMYKcmyk(0%, 71.3%, 8.2%, 23.5%)
CIE-LABlab(49.12, 67.37, -36.00)
CIE-LCHlch(49.12, 76.39, 331.88°)
OKLaboklab(59.01% 0.1944 -0.0987)
OKLCHoklch(59.01% 0.218 333.1)
XYZxyz(32.0567, 17.6878, 44.3648)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338B3 #38C348
analogous
#8D38C3 #C338B3 #C3386E
triadic
#C338B3 #B3C338 #38B3C3
tetradic
#C338B3 #C38D38 #38C348 #386EC3
square
#C338B3 #C38D38 #38C348 #386EC3
split-complementary
#C338B3 #6EC338 #38C38D
monochromatic
#641D5C #932A87 #C338B3 #D365C6 #E195D8

Accessibility & contrast

On white

4.63
#C338B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#C338B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C338B3
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338B3#FFFFFF#000000##FFFFFF
##C338B31.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3268B6
Deuteranopia (green-blind)
#667CB0
Tritanopia (blue-blind)
#CC4672
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c338b3;
/* rgb */ color: rgb(195, 56, 179);
/* oklch */ color: oklch(59.0% 0.218 333.1);
Tailwind
colors: {
  custom: {
    50: '#d97bca',
    500: '#c338b3',
    950: '#000000',
  },
}
SCSS
$custom: #c338b3;
$custom-light: #d97bca;
$custom-dark: #000000;
JSON
{
  "hex": "#c338b3",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 306.906,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59008,
    "c": 0.21803,
    "h": 333.1
  },
  "luminance": 0.17685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C338B3

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

Preview Lab → · Contrast checker → · Palette generator →

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