#271256#271256

#271256 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.114 H 290.3°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#271256
RGBrgb(39, 18, 86)
HSLhsl(259, 65%, 20%)
HSVhsv(259, 79%, 34%)
CMYKcmyk(54.7%, 79.1%, 0%, 66.3%)
CIE-LABlab(12.83, 28.88, -37.26)
CIE-LCHlch(12.83, 47.15, 307.78°)
OKLaboklab(26.14% 0.0397 -0.107)
OKLCHoklch(26.14% 0.114 290.3)
XYZxyz(2.7322, 1.5357, 8.9548)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271256 #415612
analogous
#121F56 #271256 #491256
triadic
#271256 #562712 #125627
tetradic
#271256 #56121F #415612 #125649
square
#271256 #56121F #415612 #125649
split-complementary
#271256 #564912 #1F5612
monochromatic
#0B0519 #100723 #271256 #3E1D89 #5527BB

Accessibility & contrast

On white

16.06
#271256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271256
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271256#FFFFFF#000000##FFFFFF
##2712561.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#172433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271256;
/* rgb */ color: rgb(39, 18, 86);
/* oklch */ color: oklch(26.1% 0.114 290.3);
Tailwind
colors: {
  custom: {
    50: '#675286',
    500: '#271256',
    950: '#000000',
  },
}
SCSS
$custom: #271256;
$custom-light: #675286;
$custom-dark: #000000;
JSON
{
  "hex": "#271256",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 258.529,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26141,
    "c": 0.11412,
    "h": 290.3
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#271256
secondary
#738F35
accent
#E83FB4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271256

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

Preview Lab → · Contrast checker → · Palette generator →

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