#C157F2#C157F2

#C157F2 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 65.5% C 0.232 H 313.3°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#C157F2
RGBrgb(193, 87, 242)
HSLhsl(281, 86%, 65%)
HSVhsv(281, 64%, 95%)
CMYKcmyk(20.2%, 64%, 0%, 5.1%)
CIE-LABlab(56.65, 65.94, -60.01)
CIE-LCHlch(56.65, 89.16, 317.70°)
OKLaboklab(65.49% 0.1592 -0.1689)
OKLCHoklch(65.49% 0.232 313.3)
XYZxyz(41.4248, 24.5659, 86.5467)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C157F2 #88F257
analogous
#7457F2 #C157F2 #F257D6
triadic
#C157F2 #F2C157 #57F2C1
tetradic
#C157F2 #F27457 #88F257 #57D6F2
square
#C157F2 #F27457 #88F257 #57D6F2
split-complementary
#C157F2 #D6F257 #57F274
monochromatic
#880FC0 #AC1EEE #C157F2 #D690F6 #EBC9FB

Accessibility & contrast

On white

3.55
#C157F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#C157F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C157F2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C157F2#FFFFFF#000000##000000
##C157F21.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#4E8AEE
Tritanopia (blue-blind)
#BC759D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #c157f2;
/* rgb */ color: rgb(193, 87, 242);
/* oklch */ color: oklch(65.5% 0.232 313.3);
Tailwind
colors: {
  custom: {
    50: '#d88df7',
    500: '#c157f2',
    950: '#000000',
  },
}
SCSS
$custom: #c157f2;
$custom-light: #d88df7;
$custom-dark: #000000;
JSON
{
  "hex": "#c157f2",
  "rgb": {
    "r": 193,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 281.032,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.65493,
    "c": 0.23207,
    "h": 313.3
  },
  "luminance": 0.24565
}

Semantic roles & 50–950 ramp

primary
#C157F2
secondary
#C9EDB8
accent
#E2034A
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #C157F2

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

Preview Lab → · Contrast checker → · Palette generator →

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