#D271EF#D271EF

#D271EF is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.6% C 0.199 H 318.0°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#D271EF
RGBrgb(210, 113, 239)
HSLhsl(286, 80%, 69%)
HSVhsv(286, 53%, 94%)
CMYKcmyk(12.1%, 52.7%, 0%, 6.3%)
CIE-LABlab(63.13, 57.26, -47.89)
CIE-LCHlch(63.13, 74.65, 320.09°)
OKLaboklab(70.62% 0.1477 -0.1332)
OKLCHoklch(70.62% 0.199 318)
XYZxyz(48.0613, 31.7456, 85.2405)
Luminance0.3174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271EF #8EEF71
analogous
#9371EF #D271EF #EF71CD
triadic
#D271EF #EFD271 #71EFD2
tetradic
#D271EF #EF9371 #8EEF71 #71CDEF
square
#D271EF #EF9371 #8EEF71 #71CDEF
split-complementary
#D271EF #CDEF71 #71EF93
monochromatic
#A417CE #C13AE9 #D271EF #E3A8F5 #F5DFFB

Accessibility & contrast

On white

2.86
#D271EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#D271EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271EF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271EF#FFFFFF#000000##000000
##D271EF1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5792F3
Deuteranopia (green-blind)
#769CEC
Tritanopia (blue-blind)
#D284A6
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d271ef;
/* rgb */ color: rgb(210, 113, 239);
/* oklch */ color: oklch(70.6% 0.199 318.0);
Tailwind
colors: {
  custom: {
    50: '#e29df5',
    500: '#d271ef',
    950: '#000000',
  },
}
SCSS
$custom: #d271ef;
$custom-light: #e29df5;
$custom-dark: #000000;
JSON
{
  "hex": "#d271ef",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 286.19,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70618,
    "c": 0.19888,
    "h": 318
  },
  "luminance": 0.31744
}

Semantic roles & 50–950 ramp

primary
#D271EF
secondary
#D4F0CB
accent
#DC093A
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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