#EC98FB#EC98FB

#EC98FB is a light, vivid purple. Relative luminance 0.473; OKLCH L 79.8% C 0.161 H 321.4°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#EC98FB
RGBrgb(236, 152, 251)
HSLhsl(291, 93%, 79%)
HSVhsv(291, 39%, 98%)
CMYKcmyk(6%, 39.4%, 0%, 1.6%)
CIE-LABlab(74.35, 47.03, -36.69)
CIE-LCHlch(74.35, 59.64, 322.04°)
OKLaboklab(79.8% 0.1259 -0.1006)
OKLCHoklch(79.8% 0.161 321.4)
XYZxyz(63.2308, 47.2566, 97.0387)
Luminance0.4725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC98FB #A7FB98
analogous
#BB98FB #EC98FB #FB98D9
triadic
#EC98FB #FBEC98 #98FBEC
tetradic
#EC98FB #FBBB98 #A7FB98 #98D9FB
square
#EC98FB #FBBB98 #A7FB98 #98D9FB
split-complementary
#EC98FB #D9FB98 #98FBBB
monochromatic
#D622F6 #E15DF9 #EC98FB #F7D3FD #FAE2FE

Accessibility & contrast

On white

2.01
#EC98FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#EC98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC98FB
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC98FB#FFFFFF#000000##000000
##EC98FB1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CB1FF
Deuteranopia (green-blind)
#A1BAF8
Tritanopia (blue-blind)
#EEA4BE
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #ec98fb;
/* rgb */ color: rgb(236, 152, 251);
/* oklch */ color: oklch(79.8% 0.161 321.4);
Tailwind
colors: {
  custom: {
    50: '#f3b8fd',
    500: '#ec98fb',
    950: '#000000',
  },
}
SCSS
$custom: #ec98fb;
$custom-light: #f3b8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ec98fb",
  "rgb": {
    "r": 236,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 290.909,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.79795,
    "c": 0.16116,
    "h": 321.4
  },
  "luminance": 0.47254
}

Semantic roles & 50–950 ramp

primary
#EC98FB
secondary
#DAF6D5
accent
#E60023
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #EC98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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