#271176#271176

#271176 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.6% C 0.155 H 281.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#271176
RGBrgb(39, 17, 118)
HSLhsl(253, 75%, 26%)
HSVhsv(253, 86%, 46%)
CMYKcmyk(66.9%, 85.6%, 0%, 53.7%)
CIE-LABlab(16.20, 39.43, -52.84)
CIE-LCHlch(16.20, 65.93, 306.73°)
OKLaboklab(29.55% 0.03 -0.1525)
OKLCHoklch(29.55% 0.155 281.1)
XYZxyz(4.3061, 2.1399, 17.3221)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271176 #607611
analogous
#112E76 #271176 #5A1176
triadic
#271176 #762711 #117627
tetradic
#271176 #76112E #607611 #11765A
square
#271176 #76112E #607611 #11765A
split-complementary
#271176 #765A11 #2E7611
monochromatic
#09041B #150941 #271176 #3919AB #4B22DF

Accessibility & contrast

On white

14.71
#271176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271176
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271176#FFFFFF#000000##FFFFFF
##2711761.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271176;
/* rgb */ color: rgb(39, 17, 118);
/* oklch */ color: oklch(29.6% 0.155 281.1);
Tailwind
colors: {
  custom: {
    50: '#6e549f',
    500: '#271176',
    950: '#000000',
  },
}
SCSS
$custom: #271176;
$custom-light: #6e549f;
$custom-dark: #000000;
JSON
{
  "hex": "#271176",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 253.069,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29553,
    "c": 0.15543,
    "h": 281.1
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#271176
secondary
#93AD36
accent
#F136C9
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271176

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

Preview Lab → · Contrast checker → · Palette generator →

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