#271173#271173

#271173 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.152 H 281.8°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#271173
RGBrgb(39, 17, 115)
HSLhsl(253, 74%, 26%)
HSVhsv(253, 85%, 45%)
CMYKcmyk(66.1%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.85, 38.51, -51.50)
CIE-LCHlch(15.85, 64.30, 306.79°)
OKLaboklab(29.2% 0.0311 -0.1486)
OKLCHoklch(29.2% 0.152 281.8)
XYZxyz(4.1307, 2.0697, 16.3982)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271173 #5D7311
analogous
#112C73 #271173 #581173
triadic
#271173 #732711 #117327
tetradic
#271173 #73112C #5D7311 #117358
square
#271173 #73112C #5D7311 #117358
split-complementary
#271173 #735811 #2C7311
monochromatic
#09041B #15093E #271173 #3919A8 #4B21DE

Accessibility & contrast

On white

14.85
#271173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271173
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271173#FFFFFF#000000##FFFFFF
##2711731.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002471
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271173;
/* rgb */ color: rgb(39, 17, 115);
/* oklch */ color: oklch(29.2% 0.152 281.8);
Tailwind
colors: {
  custom: {
    50: '#6d539c',
    500: '#271173',
    950: '#000000',
  },
}
SCSS
$custom: #271173;
$custom-light: #6d539c;
$custom-dark: #000000;
JSON
{
  "hex": "#271173",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 253.469,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.15179,
    "h": 281.8
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#271173
secondary
#90AA36
accent
#F137C7
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271173

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

Preview Lab → · Contrast checker → · Palette generator →

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