#271081#271081

#271081 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.169 H 279.0°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#271081
RGBrgb(39, 16, 129)
HSLhsl(252, 78%, 28%)
HSVhsv(252, 88%, 51%)
CMYKcmyk(69.8%, 87.6%, 0%, 49.4%)
CIE-LABlab(17.40, 43.18, -57.90)
CIE-LCHlch(17.40, 72.23, 306.71°)
OKLaboklab(30.76% 0.0265 -0.1672)
OKLCHoklch(30.76% 0.169 279)
XYZxyz(4.9832, 2.3865, 20.9627)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271081 #6A8110
analogous
#103281 #271081 #5F1081
triadic
#271081 #812710 #108127
tetradic
#271081 #811032 #6A8110 #10815F
square
#271081 #811032 #6A8110 #10815F
split-complementary
#271081 #815F10 #328110
monochromatic
#08031B #17094B #271081 #3717B7 #4E27E4

Accessibility & contrast

On white

14.21
#271081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271081
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271081#FFFFFF#000000##FFFFFF
##2710811.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271081;
/* rgb */ color: rgb(39, 16, 129);
/* oklch */ color: oklch(30.8% 0.169 279.0);
Tailwind
colors: {
  custom: {
    50: '#7054a7',
    500: '#271081',
    950: '#000000',
  },
}
SCSS
$custom: #271081;
$custom-light: #7054a7;
$custom-dark: #000000;
JSON
{
  "hex": "#271081",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 252.212,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30762,
    "c": 0.16927,
    "h": 279
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#271081
secondary
#9DB736
accent
#F433CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #271081

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

Preview Lab → · Contrast checker → · Palette generator →

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