#271171#271171

#271171 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.149 H 282.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#271171
RGBrgb(39, 17, 113)
HSLhsl(254, 74%, 25%)
HSVhsv(254, 85%, 44%)
CMYKcmyk(65.5%, 85%, 0%, 55.7%)
CIE-LABlab(15.61, 37.90, -50.59)
CIE-LCHlch(15.61, 63.21, 306.84°)
OKLaboklab(28.97% 0.0318 -0.1459)
OKLCHoklch(28.97% 0.149 282.3)
XYZxyz(4.0169, 2.0242, 15.7986)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271171 #5B7111
analogous
#112B71 #271171 #571171
triadic
#271171 #712711 #117127
tetradic
#271171 #71112B #5B7111 #117157
square
#271171 #71112B #5B7111 #117157
split-complementary
#271171 #715711 #2B7111
monochromatic
#09041B #15093C #271171 #3919A6 #4C21DB

Accessibility & contrast

On white

14.95
#271171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271171
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271171#FFFFFF#000000##FFFFFF
##2711711.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.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: #271171;
/* rgb */ color: rgb(39, 17, 113);
/* oklch */ color: oklch(29.0% 0.149 282.3);
Tailwind
colors: {
  custom: {
    50: '#6d539b',
    500: '#271171',
    950: '#000000',
  },
}
SCSS
$custom: #271171;
$custom-light: #6d539b;
$custom-dark: #000000;
JSON
{
  "hex": "#271171",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 253.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28972,
    "c": 0.14936,
    "h": 282.3
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#271171
secondary
#8EA836
accent
#F137C6
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271171

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

Preview Lab → · Contrast checker → · Palette generator →

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