#271561#271561

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

Color values

HEX#271561
RGBrgb(39, 21, 97)
HSLhsl(254, 64%, 23%)
HSVhsv(254, 78%, 38%)
CMYKcmyk(59.8%, 78.4%, 0%, 62%)
CIE-LABlab(14.57, 30.71, -41.80)
CIE-LCHlch(14.57, 51.87, 306.31°)
OKLaboklab(27.71% 0.034 -0.1203)
OKLCHoklch(27.71% 0.125 285.8)
XYZxyz(3.2619, 1.8305, 11.4884)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271561 #4F6115
analogous
#152961 #271561 #4D1561
triadic
#271561 #612715 #156127
tetradic
#271561 #611529 #4F6115 #15614D
square
#271561 #611529 #4F6115 #15614D
split-complementary
#271561 #614D15 #296115
monochromatic
#0A0519 #130A2F #271561 #3B2093 #4F2BC6

Accessibility & contrast

On white

15.37
#271561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271561
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271561#FFFFFF#000000##FFFFFF
##2715611.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#0C2A39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271561;
/* rgb */ color: rgb(39, 21, 97);
/* oklch */ color: oklch(27.7% 0.125 285.8);
Tailwind
colors: {
  custom: {
    50: '#69548f',
    500: '#271561',
    950: '#000000',
  },
}
SCSS
$custom: #271561;
$custom-light: #69548f;
$custom-dark: #000000;
JSON
{
  "hex": "#271561",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 254.211,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27713,
    "c": 0.12502,
    "h": 285.8
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#271561
secondary
#82983A
accent
#E740C0
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #271561

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

Preview Lab → · Contrast checker → · Palette generator →

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