#C042CB#C042CB

#C042CB is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.223 H 324.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C042CB
RGBrgb(192, 66, 203)
HSLhsl(295, 57%, 53%)
HSVhsv(295, 67%, 80%)
CMYKcmyk(5.4%, 67.5%, 0%, 20.4%)
CIE-LABlab(51.17, 67.02, -46.70)
CIE-LCHlch(51.17, 81.68, 325.13°)
OKLaboklab(60.8% 0.1818 -0.1299)
OKLCHoklch(60.8% 0.223 324.5)
XYZxyz(34.4650, 19.4168, 58.4208)
Luminance0.1941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042CB #4DCB42
analogous
#7B42CB #C042CB #CB4292
triadic
#C042CB #CBC042 #42CBC0
tetradic
#C042CB #CB7B42 #4DCB42 #4292CB
square
#C042CB #CB7B42 #4DCB42 #4292CB
split-complementary
#C042CB #92CB42 #42CB7B
monochromatic
#6C2073 #992DA3 #C042CB #D072D8 #E0A2E5

Accessibility & contrast

On white

4.30
#C042CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#C042CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042CB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042CB#FFFFFF#000000##000000
##C042CB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2170CF
Deuteranopia (green-blind)
#5B7FC8
Tritanopia (blue-blind)
#C45882
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042cb;
/* rgb */ color: rgb(192, 66, 203);
/* oklch */ color: oklch(60.8% 0.223 324.5);
Tailwind
colors: {
  custom: {
    50: '#d781db',
    500: '#c042cb',
    950: '#000000',
  },
}
SCSS
$custom: #c042cb;
$custom-light: #d781db;
$custom-dark: #000000;
JSON
{
  "hex": "#c042cb",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 295.182,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60803,
    "c": 0.22342,
    "h": 324.5
  },
  "luminance": 0.19415
}

Semantic roles & 50–950 ramp

primary
#C042CB
secondary
#9BD297
accent
#E04854
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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