#EC98F2#EC98F2

#EC98F2 is a light, vivid purple. Relative luminance 0.467; OKLCH L 79.4% C 0.152 H 324.5°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#EC98F2
RGBrgb(236, 152, 242)
HSLhsl(296, 78%, 77%)
HSVhsv(296, 37%, 95%)
CMYKcmyk(2.5%, 37.2%, 0%, 5.1%)
CIE-LABlab(74.00, 45.34, -32.35)
CIE-LCHlch(74.00, 55.70, 324.50°)
OKLaboklab(79.41% 0.1239 -0.0883)
OKLCHoklch(79.41% 0.152 324.5)
XYZxyz(61.8458, 46.7025, 89.7439)
Luminance0.4670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC98F2 #9EF298
analogous
#BF98F2 #EC98F2 #F298CB
triadic
#EC98F2 #F2EC98 #98F2EC
tetradic
#EC98F2 #F2BF98 #9EF298 #98CBF2
square
#EC98F2 #F2BF98 #9EF298 #98CBF2
split-complementary
#EC98F2 #CBF298 #98F2BF
monochromatic
#D82BE4 #E262EB #EC98F2 #F6CEF9 #FAE4FC

Accessibility & contrast

On white

2.03
#EC98F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#EC98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC98F2
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC98F2#FFFFFF#000000##000000
##EC98F21.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAFF5
Deuteranopia (green-blind)
#A5BAEF
Tritanopia (blue-blind)
#F0A1BA
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #ec98f2;
/* rgb */ color: rgb(236, 152, 242);
/* oklch */ color: oklch(79.4% 0.152 324.5);
Tailwind
colors: {
  custom: {
    50: '#f3b8f6',
    500: '#ec98f2',
    950: '#000000',
  },
}
SCSS
$custom: #ec98f2;
$custom-light: #f3b8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec98f2",
  "rgb": {
    "r": 236,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 296,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.79412,
    "c": 0.15218,
    "h": 324.5
  },
  "luminance": 0.467
}

Semantic roles & 50–950 ramp

primary
#EC98F2
secondary
#D9F3D8
accent
#DA0C19
background
#FFFBFF
surface
#FEF6FE
border
#D6D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #EC98F2

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

Preview Lab → · Contrast checker → · Palette generator →

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