#271161#271161

#271161 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.129 H 286.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#271161
RGBrgb(39, 17, 97)
HSLhsl(257, 70%, 22%)
HSVhsv(257, 82%, 38%)
CMYKcmyk(59.8%, 82.5%, 0%, 62%)
CIE-LABlab(13.80, 32.91, -43.07)
CIE-LCHlch(13.80, 54.20, 307.39°)
OKLaboklab(27.17% 0.0373 -0.124)
OKLCHoklch(27.17% 0.129 286.7)
XYZxyz(3.1942, 1.6951, 11.4658)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271161 #4B6111
analogous
#112361 #271161 #4F1161
triadic
#271161 #612711 #116127
tetradic
#271161 #611123 #4B6111 #11614F
square
#271161 #611123 #4B6111 #11614F
split-complementary
#271161 #614F11 #236111
monochromatic
#0A051A #12082D #271161 #3C1A95 #5123C9

Accessibility & contrast

On white

15.68
#271161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271161
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271161#FFFFFF#000000##FFFFFF
##2711611.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002563
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#0C2839
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271161;
/* rgb */ color: rgb(39, 17, 97);
/* oklch */ color: oklch(27.2% 0.129 286.7);
Tailwind
colors: {
  custom: {
    50: '#69528f',
    500: '#271161',
    950: '#000000',
  },
}
SCSS
$custom: #271161;
$custom-light: #69528f;
$custom-dark: #000000;
JSON
{
  "hex": "#271161",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 256.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2717,
    "c": 0.12947,
    "h": 286.7
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#271161
secondary
#7E9934
accent
#ED3BBC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #271161

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

Preview Lab → · Contrast checker → · Palette generator →

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