#C240B3#C240B3

#C240B3 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.6% C 0.208 H 332.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#C240B3
RGBrgb(194, 64, 179)
HSLhsl(307, 52%, 51%)
HSVhsv(307, 67%, 76%)
CMYKcmyk(0%, 67%, 7.7%, 23.9%)
CIE-LABlab(49.97, 64.27, -34.67)
CIE-LCHlch(49.97, 73.03, 331.65°)
OKLaboklab(59.6% 0.185 -0.095)
OKLCHoklch(59.6% 0.208 332.8)
XYZxyz(32.2183, 18.3934, 44.4925)
Luminance0.1839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240B3 #40C24F
analogous
#9040C2 #C240B3 #C24072
triadic
#C240B3 #B3C240 #40B3C2
tetradic
#C240B3 #C29040 #40C24F #4072C2
square
#C240B3 #C29040 #40C24F #4072C2
split-complementary
#C240B3 #72C240 #40C290
monochromatic
#67215F #953089 #C240B3 #D16EC5 #E09DD8

Accessibility & contrast

On white

4.49
#C240B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#C240B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240B3
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240B3#FFFFFF#000000##000000
##C240B31.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6BB6
Deuteranopia (green-blind)
#687EB0
Tritanopia (blue-blind)
#CA4C74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c240b3;
/* rgb */ color: rgb(194, 64, 179);
/* oklch */ color: oklch(59.6% 0.208 332.8);
Tailwind
colors: {
  custom: {
    50: '#d87fca',
    500: '#c240b3',
    950: '#000000',
  },
}
SCSS
$custom: #c240b3;
$custom-light: #d87fca;
$custom-dark: #000000;
JSON
{
  "hex": "#c240b3",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 306.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59595,
    "c": 0.20798,
    "h": 332.8
  },
  "luminance": 0.18391
}

Semantic roles & 50–950 ramp

primary
#C240B3
secondary
#92CC99
accent
#DB5D4D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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