#C138E7#C138E7

#C138E7 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.8% C 0.258 H 317.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C138E7
RGBrgb(193, 56, 231)
HSLhsl(287, 78%, 56%)
HSVhsv(287, 76%, 91%)
CMYKcmyk(16.5%, 75.8%, 0%, 9.4%)
CIE-LABlab(51.77, 75.69, -61.69)
CIE-LCHlch(51.77, 97.65, 320.82°)
OKLaboklab(61.79% 0.1904 -0.1736)
OKLCHoklch(61.79% 0.258 317.6)
XYZxyz(37.8282, 19.9370, 77.4415)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C138E7 #5EE738
analogous
#6A38E7 #C138E7 #E738B6
triadic
#C138E7 #E7C138 #38E7C1
tetradic
#C138E7 #E76A38 #5EE738 #38B6E7
square
#C138E7 #E76A38 #5EE738 #38B6E7
split-complementary
#C138E7 #B6E738 #38E76A
monochromatic
#771293 #A318CA #C138E7 #D26FEE #E3A5F4

Accessibility & contrast

On white

4.21
#C138E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#C138E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C138E7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C138E7#FFFFFF#000000##000000
##C138E71.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EC
Deuteranopia (green-blind)
#3E7FE3
Tritanopia (blue-blind)
#BF5E8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c138e7;
/* rgb */ color: rgb(193, 56, 231);
/* oklch */ color: oklch(61.8% 0.258 317.6);
Tailwind
colors: {
  custom: {
    50: '#d87def',
    500: '#c138e7',
    950: '#000000',
  },
}
SCSS
$custom: #c138e7;
$custom-light: #d87def;
$custom-dark: #000000;
JSON
{
  "hex": "#c138e7",
  "rgb": {
    "r": 193,
    "g": 56,
    "b": 231
  },
  "hsl": {
    "h": 286.971,
    "s": 78.475,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6179,
    "c": 0.25763,
    "h": 317.6
  },
  "luminance": 0.19935
}

Semantic roles & 50–950 ramp

primary
#C138E7
secondary
#A9E199
accent
#F5335D
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #C138E7

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

Preview Lab → · Contrast checker → · Palette generator →

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