#CA40F2#CA40F2

#CA40F2 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.3% C 0.262 H 317.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#CA40F2
RGBrgb(202, 64, 242)
HSLhsl(287, 87%, 60%)
HSVhsv(287, 74%, 95%)
CMYKcmyk(16.5%, 73.6%, 0%, 5.1%)
CIE-LABlab(54.70, 76.77, -63.08)
CIE-LCHlch(54.70, 99.36, 320.59°)
OKLaboklab(64.35% 0.1928 -0.1775)
OKLCHoklch(64.35% 0.262 317.4)
XYZxyz(42.2152, 22.6360, 86.1327)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40F2 #68F240
analogous
#7140F2 #CA40F2 #F240C1
triadic
#CA40F2 #F2CA40 #40F2CA
tetradic
#CA40F2 #F27140 #68F240 #40C1F2
square
#CA40F2 #F27140 #68F240 #40C1F2
split-complementary
#CA40F2 #C1F240 #40F271
monochromatic
#880CAC #B510E5 #CA40F2 #DA79F6 #EAB3FA

Accessibility & contrast

On white

3.80
#CA40F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#CA40F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40F2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40F2#FFFFFF#000000##000000
##CA40F21.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#4487EE
Tritanopia (blue-blind)
#C86697
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ca40f2;
/* rgb */ color: rgb(202, 64, 242);
/* oklch */ color: oklch(64.3% 0.262 317.4);
Tailwind
colors: {
  custom: {
    50: '#df82f7',
    500: '#ca40f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca40f2;
$custom-light: #df82f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40f2",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 242
  },
  "hsl": {
    "h": 286.517,
    "s": 87.255,
    "l": 60
  },
  "oklch": {
    "l": 0.64349,
    "c": 0.262,
    "h": 317.4
  },
  "luminance": 0.22634
}

Semantic roles & 50–950 ramp

primary
#CA40F2
secondary
#B4E9A5
accent
#FD2A5A
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160C17
muted
#847D85

Preview Lab

Preview with #CA40F2

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

Preview Lab → · Contrast checker → · Palette generator →

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