#271066#271066

#271066 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.137 H 285.4°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#271066
RGBrgb(39, 16, 102)
HSLhsl(256, 73%, 23%)
HSVhsv(256, 84%, 40%)
CMYKcmyk(61.8%, 84.3%, 0%, 60%)
CIE-LABlab(14.18, 34.98, -45.76)
CIE-LCHlch(14.18, 57.59, 307.40°)
OKLaboklab(27.6% 0.0363 -0.1318)
OKLCHoklch(27.6% 0.137 285.4)
XYZxyz(3.4195, 1.7610, 12.7275)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271066 #4F6610
analogous
#102466 #271066 #521066
triadic
#271066 #662710 #106627
tetradic
#271066 #661024 #4F6610 #106652
square
#271066 #661024 #4F6610 #106652
split-complementary
#271066 #665210 #246610
monochromatic
#0A041A #130831 #271066 #3B189B #4F21D0

Accessibility & contrast

On white

15.53
#271066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271066
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271066#FFFFFF#000000##FFFFFF
##2710661.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271066;
/* rgb */ color: rgb(39, 16, 102);
/* oklch */ color: oklch(27.6% 0.137 285.4);
Tailwind
colors: {
  custom: {
    50: '#6a5293',
    500: '#271066',
    950: '#000000',
  },
}
SCSS
$custom: #271066;
$custom-light: #6a5293;
$custom-dark: #000000;
JSON
{
  "hex": "#271066",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 256.047,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27603,
    "c": 0.13674,
    "h": 285.4
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#271066
secondary
#829E33
accent
#F038BF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271066

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

Preview Lab → · Contrast checker → · Palette generator →

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