#271166#271166

#271166 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.136 H 285.2°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#271166
RGBrgb(39, 17, 102)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(61.8%, 83.3%, 0%, 60%)
CIE-LABlab(14.35, 34.48, -45.47)
CIE-LCHlch(14.35, 57.07, 307.17°)
OKLaboklab(27.72% 0.0356 -0.131)
OKLCHoklch(27.72% 0.136 285.2)
XYZxyz(3.4347, 1.7913, 12.7326)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271166 #506611
analogous
#112566 #271166 #511166
triadic
#271166 #662711 #116627
tetradic
#271166 #661125 #506611 #116651
square
#271166 #661125 #506611 #116651
split-complementary
#271166 #665111 #256611
monochromatic
#0A041A #130832 #271166 #3B1A9A #4F22CF

Accessibility & contrast

On white

15.46
#271166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271166
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271166#FFFFFF#000000##FFFFFF
##2711661.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#042A3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271166;
/* rgb */ color: rgb(39, 17, 102);
/* oklch */ color: oklch(27.7% 0.136 285.2);
Tailwind
colors: {
  custom: {
    50: '#6a5293',
    500: '#271166',
    950: '#000000',
  },
}
SCSS
$custom: #271166;
$custom-light: #6a5293;
$custom-dark: #000000;
JSON
{
  "hex": "#271166",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 255.529,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27722,
    "c": 0.13577,
    "h": 285.2
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#271166
secondary
#839E35
accent
#EE3ABF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271166

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

Preview Lab → · Contrast checker → · Palette generator →

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