#EB42E2#EB42E2

#EB42E2 is a light, highly saturated purple. Relative luminance 0.271; OKLCH L 68.1% C 0.261 H 330.3°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#EB42E2
RGBrgb(235, 66, 226)
HSLhsl(303, 81%, 59%)
HSVhsv(303, 72%, 92%)
CMYKcmyk(0%, 71.9%, 3.8%, 7.8%)
CIE-LABlab(59.02, 80.08, -46.91)
CIE-LCHlch(59.02, 92.80, 329.64°)
OKLaboklab(68.13% 0.2272 -0.1294)
OKLCHoklch(68.13% 0.261 330.3)
XYZxyz(49.9364, 27.0535, 74.5285)
Luminance0.2705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EB42E2 #42EB4B
analogous
#A042EB #EB42E2 #EB428E
triadic
#EB42E2 #E2EB42 #42E2EB
tetradic
#EB42E2 #EBA042 #42EB4B #428EEB
square
#EB42E2 #EBA042 #42EB4B #428EEB
split-complementary
#EB42E2 #8EEB42 #42EBA0
monochromatic
#A2119A #D917CF #EB42E2 #F179EA #F7B1F3

Accessibility & contrast

On white

3.28
#EB42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#EB42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #EB42E2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EB42E2#FFFFFF#000000##000000
##EB42E21.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7FE6
Deuteranopia (green-blind)
#7596DE
Tritanopia (blue-blind)
#F4588F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #eb42e2;
/* rgb */ color: rgb(235, 66, 226);
/* oklch */ color: oklch(68.1% 0.261 330.3);
Tailwind
colors: {
  custom: {
    50: '#f686eb',
    500: '#eb42e2',
    950: '#000000',
  },
}
SCSS
$custom: #eb42e2;
$custom-light: #f686eb;
$custom-dark: #000000;
JSON
{
  "hex": "#eb42e2",
  "rgb": {
    "r": 235,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 303.195,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.68127,
    "c": 0.26147,
    "h": 330.3
  },
  "luminance": 0.2705
}

Semantic roles & 50–950 ramp

primary
#EB42E2
secondary
#A3E6A7
accent
#F73B31
background
#FFF8FE
surface
#FFF0FD
border
#D7CBD5
text
#180C16
muted
#867D84

Preview Lab

Preview with #EB42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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