#C157EF#C157EF

#C157EF is a light, highly saturated purple. Relative luminance 0.244; OKLCH L 65.3% C 0.229 H 314.0°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#C157EF
RGBrgb(193, 87, 239)
HSLhsl(282, 83%, 64%)
HSVhsv(282, 64%, 94%)
CMYKcmyk(19.2%, 63.6%, 0%, 6.3%)
CIE-LABlab(56.47, 65.34, -58.62)
CIE-LCHlch(56.47, 87.78, 318.10°)
OKLaboklab(65.31% 0.1593 -0.1648)
OKLCHoklch(65.31% 0.229 314)
XYZxyz(40.9779, 24.3871, 84.1932)
Luminance0.2439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C157EF #85EF57
analogous
#7557EF #C157EF #EF57D1
triadic
#C157EF #EFC157 #57EFC1
tetradic
#C157EF #EF7557 #85EF57 #57D1EF
square
#C157EF #EF7557 #85EF57 #57D1EF
split-complementary
#C157EF #D1EF57 #57EF75
monochromatic
#8712BA #AC1FEA #C157EF #D68FF4 #EAC7FA

Accessibility & contrast

On white

3.57
#C157EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#C157EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C157EF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C157EF#FFFFFF#000000##000000
##C157EF1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F82F4
Deuteranopia (green-blind)
#508AEB
Tritanopia (blue-blind)
#BD749C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #c157ef;
/* rgb */ color: rgb(193, 87, 239);
/* oklch */ color: oklch(65.3% 0.229 314.0);
Tailwind
colors: {
  custom: {
    50: '#d78df5',
    500: '#c157ef',
    950: '#000000',
  },
}
SCSS
$custom: #c157ef;
$custom-light: #d78df5;
$custom-dark: #000000;
JSON
{
  "hex": "#c157ef",
  "rgb": {
    "r": 193,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 281.842,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.65309,
    "c": 0.2292,
    "h": 314
  },
  "luminance": 0.24386
}

Semantic roles & 50–950 ramp

primary
#C157EF
secondary
#C6ECB6
accent
#DF0648
background
#FDF9FF
surface
#FBF1FE
border
#D4CBD6
text
#150D17
muted
#837E85

Preview Lab

Preview with #C157EF

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

Preview Lab → · Contrast checker → · Palette generator →

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