#CF2AFA#CF2AFA

#CF2AFA is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 64.1% C 0.288 H 317.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#CF2AFA
RGBrgb(207, 42, 250)
HSLhsl(288, 95%, 57%)
HSVhsv(288, 83%, 98%)
CMYKcmyk(17.2%, 83.2%, 0%, 2%)
CIE-LABlab(53.84, 85.20, -68.89)
CIE-LCHlch(53.84, 109.56, 321.04°)
OKLaboklab(64.06% 0.2131 -0.1942)
OKLCHoklch(64.06% 0.288 317.7)
XYZxyz(43.8129, 21.8255, 92.3289)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF2AFA #55FA2A
analogous
#672AFA #CF2AFA #FA2ABD
triadic
#CF2AFA #FACF2A #2AFACF
tetradic
#CF2AFA #FA672A #55FA2A #2ABDFA
square
#CF2AFA #FA672A #55FA2A #2ABDFA
split-complementary
#CF2AFA #BDFA2A #2AFA67
monochromatic
#8404A6 #B405E2 #CF2AFA #DC66FB #EAA2FD

Accessibility & contrast

On white

3.91
#CF2AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#CF2AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF2AFA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF2AFA#FFFFFF#000000##000000
##CF2AFA1.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#3185F6
Tritanopia (blue-blind)
#CD5F97
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf2afa;
/* rgb */ color: rgb(207, 42, 250);
/* oklch */ color: oklch(64.1% 0.288 317.7);
Tailwind
colors: {
  custom: {
    50: '#e37bfd',
    500: '#cf2afa',
    950: '#000000',
  },
}
SCSS
$custom: #cf2afa;
$custom-light: #e37bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf2afa",
  "rgb": {
    "r": 207,
    "g": 42,
    "b": 250
  },
  "hsl": {
    "h": 287.596,
    "s": 95.413,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6406,
    "c": 0.28831,
    "h": 317.7
  },
  "luminance": 0.21823
}

Semantic roles & 50–950 ramp

primary
#CF2AFA
secondary
#A7EA96
accent
#FF2955
background
#FEF8FF
surface
#FDEFFF
border
#D5CAD7
text
#160B18
muted
#847C86

Preview Lab

Preview with #CF2AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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