#C338C9#C338C9

#C338C9 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.2% C 0.235 H 326.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C338C9
RGBrgb(195, 56, 201)
HSLhsl(298, 57%, 50%)
HSVhsv(298, 72%, 79%)
CMYKcmyk(3%, 72.1%, 0%, 21.2%)
CIE-LABlab(50.27, 70.87, -46.95)
CIE-LCHlch(50.27, 85.01, 326.47°)
OKLaboklab(60.22% 0.1949 -0.1304)
OKLCHoklch(60.22% 0.235 326.2)
XYZxyz(34.4618, 18.6498, 57.0317)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338C9 #3EC938
analogous
#7A38C9 #C338C9 #C93887
triadic
#C338C9 #C9C338 #38C9C3
tetradic
#C338C9 #C97A38 #3EC938 #3887C9
square
#C338C9 #C97A38 #3EC938 #3887C9
split-complementary
#C338C9 #87C938 #38C97A
monochromatic
#671D6A #952A9A #C338C9 #D268D6 #E098E3

Accessibility & contrast

On white

4.44
#C338C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C338C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C338C9
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338C9#FFFFFF#000000##000000
##C338C91.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#106DCD
Deuteranopia (green-blind)
#5A7EC5
Tritanopia (blue-blind)
#C8507E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c338c9;
/* rgb */ color: rgb(195, 56, 201);
/* oklch */ color: oklch(60.2% 0.235 326.2);
Tailwind
colors: {
  custom: {
    50: '#d97cda',
    500: '#c338c9',
    950: '#000000',
  },
}
SCSS
$custom: #c338c9;
$custom-light: #d97cda;
$custom-dark: #000000;
JSON
{
  "hex": "#c338c9",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 297.517,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60216,
    "c": 0.23454,
    "h": 326.2
  },
  "luminance": 0.18647
}

Semantic roles & 50–950 ramp

primary
#C338C9
secondary
#91CF8E
accent
#E1474E
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C338C9

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

Preview Lab → · Contrast checker → · Palette generator →

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