#271056#271056

#271056 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.117 H 290.9°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#271056
RGBrgb(39, 16, 86)
HSLhsl(260, 69%, 20%)
HSVhsv(260, 81%, 34%)
CMYKcmyk(54.7%, 81.4%, 0%, 66.3%)
CIE-LABlab(12.44, 30.00, -37.91)
CIE-LCHlch(12.44, 48.34, 308.36°)
OKLaboklab(25.86% 0.0416 -0.1089)
OKLCHoklch(25.86% 0.117 290.9)
XYZxyz(2.7012, 1.4737, 8.9444)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271056 #3F5610
analogous
#101C56 #271056 #4A1056
triadic
#271056 #562710 #105627
tetradic
#271056 #56101C #3F5610 #10564A
square
#271056 #56101C #3F5610 #10564A
split-complementary
#271056 #564A10 #1C5610
monochromatic
#0C051A #100622 #271056 #3E1A8A #5623BD

Accessibility & contrast

On white

16.22
#271056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271056
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271056#FFFFFF#000000##FFFFFF
##2710561.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#172332
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271056;
/* rgb */ color: rgb(39, 16, 86);
/* oklch */ color: oklch(25.9% 0.117 290.9);
Tailwind
colors: {
  custom: {
    50: '#675186',
    500: '#271056',
    950: '#000000',
  },
}
SCSS
$custom: #271056;
$custom-light: #675186;
$custom-dark: #000000;
JSON
{
  "hex": "#271056",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 259.714,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.25864,
    "c": 0.11654,
    "h": 290.9
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#271056
secondary
#718F32
accent
#EB3CB2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271056

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

Preview Lab → · Contrast checker → · Palette generator →

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