#CF3158#CF3158

#CF3158 is a mid, vivid red. Relative luminance 0.162; OKLCH L 56.9% C 0.193 H 12.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CF3158
RGBrgb(207, 49, 88)
HSLhsl(345, 62%, 50%)
HSVhsv(345, 76%, 81%)
CMYKcmyk(0%, 76.3%, 57.5%, 18.8%)
CIE-LABlab(47.20, 62.63, 16.25)
CIE-LCHlch(47.20, 64.70, 14.55°)
OKLaboklab(56.95% 0.1892 0.0405)
OKLCHoklch(56.95% 0.193 12.1)
XYZxyz(28.5947, 16.1708, 10.8462)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF3158 #31CFA8
analogous
#CF31A7 #CF3158 #CF5931
triadic
#CF3158 #58CF31 #3158CF
tetradic
#CF3158 #A7CF31 #31CFA8 #5931CF
square
#CF3158 #A7CF31 #31CFA8 #5931CF
split-complementary
#CF3158 #31CF59 #31A7CF
monochromatic
#6C192E #9E2543 #CF3158 #DB6380 #E694A8

Accessibility & contrast

On white

4.96
#CF3158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#CF3158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CF3158
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF3158#FFFFFF#000000##FFFFFF
##CF31581.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5B59
Deuteranopia (green-blind)
#857C54
Tritanopia (blue-blind)
#E20042
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #cf3158;
/* rgb */ color: rgb(207, 49, 88);
/* oklch */ color: oklch(56.9% 0.193 12.1);
Tailwind
colors: {
  custom: {
    50: '#e57786',
    500: '#cf3158',
    950: '#000000',
  },
}
SCSS
$custom: #cf3158;
$custom-light: #e57786;
$custom-dark: #000000;
JSON
{
  "hex": "#cf3158",
  "rgb": {
    "r": 207,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 345.19,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56949,
    "c": 0.19347,
    "h": 12.1
  },
  "luminance": 0.16167
}

Semantic roles & 50–950 ramp

primary
#CF3158
secondary
#8BD1C0
accent
#E5BD43
background
#FFF7F8
surface
#FEEEEF
border
#D6C9CA
text
#170A0B
muted
#857C7C

Preview Lab

Preview with #CF3158

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

Preview Lab → · Contrast checker → · Palette generator →

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