#271060#271060

#271060 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.129 H 287.3°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#271060
RGBrgb(39, 16, 96)
HSLhsl(257, 71%, 22%)
HSVhsv(257, 83%, 38%)
CMYKcmyk(59.4%, 83.3%, 0%, 62.4%)
CIE-LABlab(13.51, 33.12, -42.88)
CIE-LCHlch(13.51, 54.18, 307.68°)
OKLaboklab(26.94% 0.0384 -0.1234)
OKLCHoklch(26.94% 0.129 287.3)
XYZxyz(3.1327, 1.6463, 11.2168)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271060 #496010
analogous
#102160 #271060 #4F1060
triadic
#271060 #602710 #106027
tetradic
#271060 #601021 #496010 #10604F
square
#271060 #601021 #496010 #10604F
split-complementary
#271060 #604F10 #216010
monochromatic
#0B041A #12072C #271060 #3C1994 #5221C9

Accessibility & contrast

On white

15.80
#271060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271060
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271060#FFFFFF#000000##FFFFFF
##2710601.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002462
Deuteranopia (green-blind)
#00205F
Tritanopia (blue-blind)
#0D2738
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271060;
/* rgb */ color: rgb(39, 16, 96);
/* oklch */ color: oklch(26.9% 0.129 287.3);
Tailwind
colors: {
  custom: {
    50: '#69518e',
    500: '#271060',
    950: '#000000',
  },
}
SCSS
$custom: #271060;
$custom-light: #69518e;
$custom-dark: #000000;
JSON
{
  "hex": "#271060",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 257.25,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26936,
    "c": 0.12925,
    "h": 287.3
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#271060
secondary
#7C9933
accent
#EE3ABA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #271060

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

Preview Lab → · Contrast checker → · Palette generator →

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