#EC98FF#EC98FF

#EC98FF is a light, vivid purple. Relative luminance 0.475; OKLCH L 80.0% C 0.165 H 320.0°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#EC98FF
RGBrgb(236, 152, 255)
HSLhsl(289, 100%, 80%)
HSVhsv(289, 40%, 100%)
CMYKcmyk(7.5%, 40.4%, 0%, 0%)
CIE-LABlab(74.52, 47.79, -38.60)
CIE-LCHlch(74.52, 61.43, 321.07°)
OKLaboklab(79.97% 0.1267 -0.1061)
OKLCHoklch(79.97% 0.165 320)
XYZxyz(63.8680, 47.5115, 100.3946)
Luminance0.4751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC98FF #ABFF98
analogous
#B998FF #EC98FF #FF98DF
triadic
#EC98FF #FFEC98 #98FFEC
tetradic
#EC98FF #FFB998 #ABFF98 #98DFFF
square
#EC98FF #FFB998 #ABFF98 #98DFFF
split-complementary
#EC98FF #DFFF98 #98FFB9
monochromatic
#D51EFF #E15BFF #EC98FF #F7D5FF #F9E0FF

Accessibility & contrast

On white

2.00
#EC98FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.50
#EC98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC98FF
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC98FF#FFFFFF#000000##000000
##EC98FF1.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AB1FF
Deuteranopia (green-blind)
#A0BAFC
Tritanopia (blue-blind)
#EDA5C0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ec98ff;
/* rgb */ color: rgb(236, 152, 255);
/* oklch */ color: oklch(80.0% 0.165 320.0);
Tailwind
colors: {
  custom: {
    50: '#f4b8ff',
    500: '#ec98ff',
    950: '#000000',
  },
}
SCSS
$custom: #ec98ff;
$custom-light: #f4b8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ec98ff",
  "rgb": {
    "r": 236,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 288.932,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.7997,
    "c": 0.16524,
    "h": 320
  },
  "luminance": 0.47509
}

Semantic roles & 50–950 ramp

primary
#EC98FF
secondary
#DAF7D4
accent
#E6002A
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #EC98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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