#271160#271160

#271160 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.128 H 287.1°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#271160
RGBrgb(39, 17, 96)
HSLhsl(257, 70%, 22%)
HSVhsv(257, 82%, 38%)
CMYKcmyk(59.4%, 82.3%, 0%, 62.4%)
CIE-LABlab(13.69, 32.60, -42.58)
CIE-LCHlch(13.69, 53.63, 307.43°)
OKLaboklab(27.06% 0.0376 -0.1226)
OKLCHoklch(27.06% 0.128 287.1)
XYZxyz(3.1478, 1.6766, 11.2218)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271160 #4A6011
analogous
#112260 #271160 #4F1160
triadic
#271160 #602711 #116027
tetradic
#271160 #601122 #4A6011 #11604F
square
#271160 #601122 #4A6011 #11604F
split-complementary
#271160 #604F11 #226011
monochromatic
#0B051A #12082C #271160 #3C1A94 #5123C8

Accessibility & contrast

On white

15.73
#271160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271160
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271160#FFFFFF#000000##FFFFFF
##2711601.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#0D2838
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271160;
/* rgb */ color: rgb(39, 17, 96);
/* oklch */ color: oklch(27.1% 0.128 287.1);
Tailwind
colors: {
  custom: {
    50: '#69528e',
    500: '#271160',
    950: '#000000',
  },
}
SCSS
$custom: #271160;
$custom-light: #69528e;
$custom-dark: #000000;
JSON
{
  "hex": "#271160",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 256.709,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27061,
    "c": 0.12821,
    "h": 287.1
  },
  "luminance": 0.01677
}

Semantic roles & 50–950 ramp

primary
#271160
secondary
#7D9934
accent
#ED3BBB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #271160

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

Preview Lab → · Contrast checker → · Palette generator →

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