#271271#271271

#271271 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.148 H 282.1°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#271271
RGBrgb(39, 18, 113)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 84%, 44%)
CMYKcmyk(65.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.78, 37.42, -50.32)
CIE-LCHlch(15.78, 62.70, 306.63°)
OKLaboklab(29.09% 0.0312 -0.1451)
OKLCHoklch(29.09% 0.148 282.1)
XYZxyz(4.0327, 2.0559, 15.8039)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271271 #5C7112
analogous
#122C71 #271271 #561271
triadic
#271271 #712712 #127127
tetradic
#271271 #71122C #5C7112 #127156
square
#271271 #71122C #5C7112 #127156
split-complementary
#271271 #715612 #2C7112
monochromatic
#09041A #150A3C #271271 #391AA6 #4B23DB

Accessibility & contrast

On white

14.88
#271271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271271
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271271#FFFFFF#000000##FFFFFF
##2712711.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271271;
/* rgb */ color: rgb(39, 18, 113);
/* oklch */ color: oklch(29.1% 0.148 282.1);
Tailwind
colors: {
  custom: {
    50: '#6d549b',
    500: '#271271',
    950: '#000000',
  },
}
SCSS
$custom: #271271;
$custom-light: #6d549b;
$custom-dark: #000000;
JSON
{
  "hex": "#271271",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 253.263,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29085,
    "c": 0.14847,
    "h": 282.1
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#271271
secondary
#8FA837
accent
#EF39C7
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271271

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

Preview Lab → · Contrast checker → · Palette generator →

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