#CF5271#CF5271

#CF5271 is a mid, vivid red. Relative luminance 0.205; OKLCH L 61.0% C 0.160 H 7.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CF5271
RGBrgb(207, 82, 113)
HSLhsl(345, 57%, 57%)
HSVhsv(345, 60%, 81%)
CMYKcmyk(0%, 60.4%, 45.4%, 18.8%)
CIE-LABlab(52.39, 52.06, 8.35)
CIE-LCHlch(52.39, 52.73, 9.11°)
OKLaboklab(61% 0.1583 0.0219)
OKLCHoklch(61% 0.16 7.9)
XYZxyz(31.7323, 20.4960, 17.9046)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5271 #52CFB0
analogous
#CF52B0 #CF5271 #CF7252
triadic
#CF5271 #71CF52 #5271CF
tetradic
#CF5271 #B0CF52 #52CFB0 #7252CF
square
#CF5271 #B0CF52 #52CFB0 #7252CF
split-complementary
#CF5271 #52CF72 #52B0CF
monochromatic
#82243C #B23151 #CF5271 #DC8298 #EAB2C0

Accessibility & contrast

On white

4.12
#CF5271 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CF5271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF5271
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF5271#FFFFFF#000000##000000
##CF52711.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C6D72
Deuteranopia (green-blind)
#8C866E
Tritanopia (blue-blind)
#E0425E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf5271;
/* rgb */ color: rgb(207, 82, 113);
/* oklch */ color: oklch(61.0% 0.160 7.9);
Tailwind
colors: {
  custom: {
    50: '#e28899',
    500: '#cf5271',
    950: '#000000',
  },
}
SCSS
$custom: #cf5271;
$custom-light: #e28899;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5271",
  "rgb": {
    "r": 207,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 345.12,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61003,
    "c": 0.15981,
    "h": 7.9
  },
  "luminance": 0.20492
}

Semantic roles & 50–950 ramp

primary
#CF5271
secondary
#A5D8CB
accent
#E0BA48
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CF5271

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

Preview Lab → · Contrast checker → · Palette generator →

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