#271162#271162

#271162 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.131 H 286.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#271162
RGBrgb(39, 17, 98)
HSLhsl(256, 70%, 23%)
HSVhsv(256, 83%, 38%)
CMYKcmyk(60.2%, 82.7%, 0%, 61.6%)
CIE-LABlab(13.91, 33.23, -43.55)
CIE-LCHlch(13.91, 54.78, 307.34°)
OKLaboklab(27.28% 0.0369 -0.1254)
OKLCHoklch(27.28% 0.131 286.4)
XYZxyz(3.2411, 1.7139, 11.7129)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271162 #4C6211
analogous
#112462 #271162 #4F1162
triadic
#271162 #622711 #116227
tetradic
#271162 #621124 #4C6211 #11624F
square
#271162 #621124 #4C6211 #11624F
split-complementary
#271162 #624F11 #246211
monochromatic
#0A051A #12082E #271162 #3C1A96 #5123CA

Accessibility & contrast

On white

15.64
#271162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271162
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271162#FFFFFF#000000##FFFFFF
##2711621.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002161
Tritanopia (blue-blind)
#0B2839
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271162;
/* rgb */ color: rgb(39, 17, 98);
/* oklch */ color: oklch(27.3% 0.131 286.4);
Tailwind
colors: {
  custom: {
    50: '#695290',
    500: '#271162',
    950: '#000000',
  },
}
SCSS
$custom: #271162;
$custom-light: #695290;
$custom-dark: #000000;
JSON
{
  "hex": "#271162",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 256.296,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2728,
    "c": 0.13074,
    "h": 286.4
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#271162
secondary
#7F9A34
accent
#ED3BBD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #271162

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

Preview Lab → · Contrast checker → · Palette generator →

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