#C162F2#C162F2

#C162F2 is a light, highly saturated violet. Relative luminance 0.265; OKLCH L 66.8% C 0.217 H 312.4°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#C162F2
RGBrgb(193, 98, 242)
HSLhsl(280, 85%, 67%)
HSVhsv(280, 60%, 95%)
CMYKcmyk(20.2%, 59.5%, 0%, 5.1%)
CIE-LABlab(58.49, 60.90, -57.05)
CIE-LCHlch(58.49, 83.45, 316.87°)
OKLaboklab(66.83% 0.1465 -0.1603)
OKLCHoklch(66.83% 0.217 312.4)
XYZxyz(42.3842, 26.4847, 86.8665)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162F2 #93F262
analogous
#7962F2 #C162F2 #F262DB
triadic
#C162F2 #F2C162 #62F2C1
tetradic
#C162F2 #F27962 #93F262 #62DBF2
square
#C162F2 #F27962 #93F262 #62DBF2
split-complementary
#C162F2 #DBF262 #62F279
monochromatic
#8A11C9 #AB29ED #C162F2 #D79BF7 #EED3FB

Accessibility & contrast

On white

3.34
#C162F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#C162F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162F2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162F2#FFFFFF#000000##000000
##C162F21.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E88F7
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#BC7CA1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #c162f2;
/* rgb */ color: rgb(193, 98, 242);
/* oklch */ color: oklch(66.8% 0.217 312.4);
Tailwind
colors: {
  custom: {
    50: '#d793f7',
    500: '#c162f2',
    950: '#000000',
  },
}
SCSS
$custom: #c162f2;
$custom-light: #d793f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c162f2",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 279.583,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66828,
    "c": 0.21712,
    "h": 312.4
  },
  "luminance": 0.26484
}

Semantic roles & 50–950 ramp

primary
#C162F2
secondary
#D0EFC1
accent
#E1044F
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #C162F2

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

Preview Lab → · Contrast checker → · Palette generator →

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