#C181F2#C181F2

#C181F2 is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.3% C 0.170 H 308.8°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#C181F2
RGBrgb(193, 129, 242)
HSLhsl(274, 81%, 73%)
HSVhsv(274, 47%, 95%)
CMYKcmyk(20.2%, 46.7%, 0%, 5.1%)
CIE-LABlab(64.52, 45.10, -47.48)
CIE-LCHlch(64.52, 65.49, 313.53°)
OKLaboklab(71.27% 0.1066 -0.1325)
OKLCHoklch(71.27% 0.17 308.8)
XYZxyz(45.8665, 33.4494, 88.0273)
Luminance0.3345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C181F2 #B2F281
analogous
#8881F2 #C181F2 #F281EB
triadic
#C181F2 #F2C181 #81F2C1
tetradic
#C181F2 #F28881 #B2F281 #81EBF2
square
#C181F2 #F28881 #B2F281 #81EBF2
split-complementary
#C181F2 #EBF281 #81F288
monochromatic
#8A17E1 #A64AEC #C181F2 #DCB8F8 #F1E3FC

Accessibility & contrast

On white

2.73
#C181F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#C181F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C181F2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C181F2#FFFFFF#000000##000000
##C181F21.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#BA93AE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c181f2;
/* rgb */ color: rgb(193, 129, 242);
/* oklch */ color: oklch(71.3% 0.170 308.8);
Tailwind
colors: {
  custom: {
    50: '#d6a7f7',
    500: '#c181f2',
    950: '#000000',
  },
}
SCSS
$custom: #c181f2;
$custom-light: #d6a7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c181f2",
  "rgb": {
    "r": 193,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 273.982,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71272,
    "c": 0.17006,
    "h": 308.8
  },
  "luminance": 0.33449
}

Semantic roles & 50–950 ramp

primary
#C181F2
secondary
#E4F4D7
accent
#DE0865
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #C181F2

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

Preview Lab → · Contrast checker → · Palette generator →

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