#271163#271163

#271163 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.132 H 286.1°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#271163
RGBrgb(39, 17, 99)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 39%)
CMYKcmyk(60.6%, 82.8%, 0%, 61.2%)
CIE-LABlab(14.02, 33.54, -44.04)
CIE-LCHlch(14.02, 55.35, 307.29°)
OKLaboklab(27.39% 0.0366 -0.1268)
OKLCHoklch(27.39% 0.132 286.1)
XYZxyz(3.2886, 1.7329, 11.9632)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271163 #4D6311
analogous
#112463 #271163 #501163
triadic
#271163 #632711 #116327
tetradic
#271163 #631124 #4D6311 #116350
square
#271163 #631124 #4D6311 #116350
split-complementary
#271163 #635011 #246311
monochromatic
#0A041A #12082F #271163 #3C1A97 #5023CB

Accessibility & contrast

On white

15.59
#271163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271163
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271163#FFFFFF#000000##FFFFFF
##2711631.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002665
Deuteranopia (green-blind)
#002162
Tritanopia (blue-blind)
#09293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271163;
/* rgb */ color: rgb(39, 17, 99);
/* oklch */ color: oklch(27.4% 0.132 286.1);
Tailwind
colors: {
  custom: {
    50: '#6a5290',
    500: '#271163',
    950: '#000000',
  },
}
SCSS
$custom: #271163;
$custom-light: #6a5290;
$custom-dark: #000000;
JSON
{
  "hex": "#271163",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 99
  },
  "hsl": {
    "h": 256.098,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2739,
    "c": 0.132,
    "h": 286.1
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#271163
secondary
#809B34
accent
#ED3ABD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #271163

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

Preview Lab → · Contrast checker → · Palette generator →

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