#271168#271168

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

Color values

HEX#271168
RGBrgb(39, 17, 104)
HSLhsl(255, 72%, 24%)
HSVhsv(255, 84%, 41%)
CMYKcmyk(62.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.58, 35.10, -46.42)
CIE-LCHlch(14.58, 58.20, 307.10°)
OKLaboklab(27.95% 0.0349 -0.1338)
OKLCHoklch(27.95% 0.138 284.6)
XYZxyz(3.5351, 1.8315, 13.2613)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271168 #526811
analogous
#112668 #271168 #521168
triadic
#271168 #682711 #116827
tetradic
#271168 #681126 #526811 #116852
square
#271168 #681126 #526811 #116852
split-complementary
#271168 #685211 #266811
monochromatic
#0A041A #130833 #271168 #3B1A9D #4E22D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271168#FFFFFF#000000##FFFFFF
##2711681.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)
#00276A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#012B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271168;
/* rgb */ color: rgb(39, 17, 104);
/* oklch */ color: oklch(27.9% 0.138 284.6);
Tailwind
colors: {
  custom: {
    50: '#6b5394',
    500: '#271168',
    950: '#000000',
  },
}
SCSS
$custom: #271168;
$custom-light: #6b5394;
$custom-dark: #000000;
JSON
{
  "hex": "#271168",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 255.172,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27946,
    "c": 0.13827,
    "h": 284.6
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#271168
secondary
#85A035
accent
#EF39C1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271168

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

Preview Lab → · Contrast checker → · Palette generator →

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