#C240B1#C240B1

#C240B1 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.206 H 333.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C240B1
RGBrgb(194, 64, 177)
HSLhsl(308, 52%, 51%)
HSVhsv(308, 67%, 76%)
CMYKcmyk(0%, 67%, 8.8%, 23.9%)
CIE-LABlab(49.87, 63.96, -33.65)
CIE-LCHlch(49.87, 72.27, 332.25°)
OKLaboklab(59.49% 0.1848 -0.0921)
OKLCHoklch(59.49% 0.206 333.5)
XYZxyz(32.0175, 18.3130, 43.4349)
Luminance0.1831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240B1 #40C251
analogous
#9240C2 #C240B1 #C24070
triadic
#C240B1 #B1C240 #40B1C2
tetradic
#C240B1 #C29240 #40C251 #4070C2
square
#C240B1 #C29240 #40C251 #4070C2
split-complementary
#C240B1 #70C240 #40C292
monochromatic
#67215E #953088 #C240B1 #D16EC4 #E09DD7

Accessibility & contrast

On white

4.50
#C240B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#C240B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240B1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240B1#FFFFFF#000000##000000
##C240B11.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB4
Deuteranopia (green-blind)
#697DAE
Tritanopia (blue-blind)
#CB4B73
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c240b1;
/* rgb */ color: rgb(194, 64, 177);
/* oklch */ color: oklch(59.5% 0.206 333.5);
Tailwind
colors: {
  custom: {
    50: '#d87fc8',
    500: '#c240b1',
    950: '#000000',
  },
}
SCSS
$custom: #c240b1;
$custom-light: #d87fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c240b1",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 307.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59494,
    "c": 0.20648,
    "h": 333.5
  },
  "luminance": 0.1831
}

Semantic roles & 50–950 ramp

primary
#C240B1
secondary
#92CC9A
accent
#DB5F4D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C240B1

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

Preview Lab → · Contrast checker → · Palette generator →

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