#CF42B8#CF42B8

#CF42B8 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.9% C 0.217 H 335.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CF42B8
RGBrgb(207, 66, 184)
HSLhsl(310, 59%, 54%)
HSVhsv(310, 68%, 81%)
CMYKcmyk(0%, 68.1%, 11.1%, 18.8%)
CIE-LABlab(52.54, 67.45, -33.42)
CIE-LCHlch(52.54, 75.28, 333.65°)
OKLaboklab(61.93% 0.1966 -0.0911)
OKLCHoklch(61.93% 0.217 335.1)
XYZxyz(36.3325, 20.6256, 47.4057)
Luminance0.2062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42B8 #42CF59
analogous
#9F42CF #CF42B8 #CF4271
triadic
#CF42B8 #B8CF42 #42B8CF
tetradic
#CF42B8 #CF9F42 #42CF59 #4271CF
square
#CF42B8 #CF9F42 #42CF59 #4271CF
split-complementary
#CF42B8 #71CF42 #42CF9F
monochromatic
#781F69 #A92B94 #CF42B8 #DB73CA #E8A4DD

Accessibility & contrast

On white

4.10
#CF42B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CF42B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42B8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42B8#FFFFFF#000000##000000
##CF42B81.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4270BB
Deuteranopia (green-blind)
#7285B5
Tritanopia (blue-blind)
#D94C78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf42b8;
/* rgb */ color: rgb(207, 66, 184);
/* oklch */ color: oklch(61.9% 0.217 335.1);
Tailwind
colors: {
  custom: {
    50: '#e182cd',
    500: '#cf42b8',
    950: '#000000',
  },
}
SCSS
$custom: #cf42b8;
$custom-light: #e182cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42b8",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 309.787,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61933,
    "c": 0.21671,
    "h": 335.1
  },
  "luminance": 0.20623
}

Semantic roles & 50–950 ramp

primary
#CF42B8
secondary
#98D5A2
accent
#E35F45
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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