#C240B7#C240B7

#C240B7 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.8% C 0.211 H 331.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C240B7
RGBrgb(194, 64, 183)
HSLhsl(305, 52%, 51%)
HSVhsv(305, 67%, 76%)
CMYKcmyk(0%, 67%, 5.7%, 23.9%)
CIE-LABlab(50.17, 64.90, -36.70)
CIE-LCHlch(50.17, 74.56, 330.51°)
OKLaboklab(59.8% 0.1853 -0.1008)
OKLCHoklch(59.8% 0.211 331.5)
XYZxyz(32.6287, 18.5575, 46.6540)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240B7 #40C24B
analogous
#8C40C2 #C240B7 #C24076
triadic
#C240B7 #B7C240 #40B7C2
tetradic
#C240B7 #C28C40 #40C24B #4076C2
square
#C240B7 #C28C40 #40C24B #4076C2
split-complementary
#C240B7 #76C240 #40C28C
monochromatic
#672161 #95308D #C240B7 #D16EC8 #E09DDA

Accessibility & contrast

On white

4.46
#C240B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#C240B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240B7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240B7#FFFFFF#000000##000000
##C240B71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#386CBA
Deuteranopia (green-blind)
#677EB4
Tritanopia (blue-blind)
#CA4E76
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c240b7;
/* rgb */ color: rgb(194, 64, 183);
/* oklch */ color: oklch(59.8% 0.211 331.5);
Tailwind
colors: {
  custom: {
    50: '#d87fcd',
    500: '#c240b7',
    950: '#000000',
  },
}
SCSS
$custom: #c240b7;
$custom-light: #d87fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#c240b7",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 305.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.598,
    "c": 0.21099,
    "h": 331.5
  },
  "luminance": 0.18555
}

Semantic roles & 50–950 ramp

primary
#C240B7
secondary
#92CC97
accent
#DB594D
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C240B7

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

Preview Lab → · Contrast checker → · Palette generator →

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