#C338AF#C338AF

#C338AF is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.215 H 334.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C338AF
RGBrgb(195, 56, 175)
HSLhsl(309, 55%, 49%)
HSVhsv(309, 71%, 76%)
CMYKcmyk(0%, 71.3%, 10.3%, 23.5%)
CIE-LABlab(48.92, 66.77, -33.96)
CIE-LCHlch(48.92, 74.91, 333.04°)
OKLaboklab(58.8% 0.1941 -0.0929)
OKLCHoklch(58.8% 0.215 334.4)
XYZxyz(31.6580, 17.5283, 42.2651)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338AF #38C34C
analogous
#9238C3 #C338AF #C3386A
triadic
#C338AF #AFC338 #38AFC3
tetradic
#C338AF #C39238 #38C34C #386AC3
square
#C338AF #C39238 #38C34C #386AC3
split-complementary
#C338AF #6AC338 #38C392
monochromatic
#641D5A #932A84 #C338AF #D365C3 #E195D6

Accessibility & contrast

On white

4.66
#C338AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#C338AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C338AF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338AF#FFFFFF#000000##FFFFFF
##C338AF1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#677BAC
Tritanopia (blue-blind)
#CC446F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c338af;
/* rgb */ color: rgb(195, 56, 175);
/* oklch */ color: oklch(58.8% 0.215 334.4);
Tailwind
colors: {
  custom: {
    50: '#d97bc7',
    500: '#c338af',
    950: '#000000',
  },
}
SCSS
$custom: #c338af;
$custom-light: #d97bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#c338af",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 308.633,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58803,
    "c": 0.21516,
    "h": 334.4
  },
  "luminance": 0.17526
}

Semantic roles & 50–950 ramp

primary
#C338AF
secondary
#8BCC94
accent
#DF5F49
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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