#C338E7#C338E7

#C338E7 is a light, highly saturated purple. Relative luminance 0.202; OKLCH L 62.1% C 0.258 H 318.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C338E7
RGBrgb(195, 56, 231)
HSLhsl(288, 78%, 56%)
HSVhsv(288, 76%, 91%)
CMYKcmyk(15.6%, 75.8%, 0%, 9.4%)
CIE-LABlab(52.06, 76.06, -61.19)
CIE-LCHlch(52.06, 97.62, 321.18°)
OKLaboklab(62.06% 0.1927 -0.1721)
OKLCHoklch(62.06% 0.258 318.2)
XYZxyz(38.3416, 20.2018, 77.4655)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C338E7 #5CE738
analogous
#6C38E7 #C338E7 #E738B4
triadic
#C338E7 #E7C338 #38E7C3
tetradic
#C338E7 #E76C38 #5CE738 #38B4E7
square
#C338E7 #E76C38 #5CE738 #38B4E7
split-complementary
#C338E7 #B4E738 #38E76C
monochromatic
#781293 #A518CA #C338E7 #D36FEE #E4A5F4

Accessibility & contrast

On white

4.17
#C338E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#C338E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C338E7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C338E7#FFFFFF#000000##000000
##C338E71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#4180E3
Tritanopia (blue-blind)
#C25E8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c338e7;
/* rgb */ color: rgb(195, 56, 231);
/* oklch */ color: oklch(62.1% 0.258 318.2);
Tailwind
colors: {
  custom: {
    50: '#da7def',
    500: '#c338e7',
    950: '#000000',
  },
}
SCSS
$custom: #c338e7;
$custom-light: #da7def;
$custom-dark: #000000;
JSON
{
  "hex": "#c338e7",
  "rgb": {
    "r": 195,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 287.657,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6206,
    "c": 0.25834,
    "h": 318.2
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

primary
#C338E7
secondary
#A8E199
accent
#F5335B
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #C338E7

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

Preview Lab → · Contrast checker → · Palette generator →

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