#271571#271571

#271571 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.146 H 281.6°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#271571
RGBrgb(39, 21, 113)
HSLhsl(252, 69%, 26%)
HSVhsv(252, 81%, 44%)
CMYKcmyk(65.5%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.30, 35.90, -49.45)
CIE-LCHlch(16.30, 61.10, 305.98°)
OKLaboklab(29.45% 0.0294 -0.1427)
OKLCHoklch(29.45% 0.146 281.6)
XYZxyz(4.0846, 2.1596, 15.8212)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271571 #5F7115
analogous
#153171 #271571 #551571
triadic
#271571 #712715 #157127
tetradic
#271571 #711531 #5F7115 #157155
square
#271571 #711531 #5F7115 #157155
split-complementary
#271571 #715515 #317115
monochromatic
#09051A #150B3D #271571 #391FA5 #4B29D7

Accessibility & contrast

On white

14.66
#271571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271571
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271571#FFFFFF#000000##FFFFFF
##2715711.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271571;
/* rgb */ color: rgb(39, 21, 113);
/* oklch */ color: oklch(29.5% 0.146 281.6);
Tailwind
colors: {
  custom: {
    50: '#6c559b',
    500: '#271571',
    950: '#000000',
  },
}
SCSS
$custom: #271571;
$custom-light: #6c559b;
$custom-dark: #000000;
JSON
{
  "hex": "#271571",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 251.739,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29451,
    "c": 0.14566,
    "h": 281.6
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#271571
secondary
#92A73B
accent
#EB3CC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271571

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

Preview Lab → · Contrast checker → · Palette generator →

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