#271167#271167

#271167 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.137 H 284.9°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#271167
RGBrgb(39, 17, 103)
HSLhsl(255, 72%, 24%)
HSVhsv(255, 83%, 40%)
CMYKcmyk(62.1%, 83.5%, 0%, 59.6%)
CIE-LABlab(14.46, 34.79, -45.95)
CIE-LCHlch(14.46, 57.63, 307.13°)
OKLaboklab(27.83% 0.0353 -0.1324)
OKLCHoklch(27.83% 0.137 284.9)
XYZxyz(3.4846, 1.8113, 12.9953)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271167 #516711
analogous
#112667 #271167 #521167
triadic
#271167 #672711 #116727
tetradic
#271167 #671126 #516711 #116752
square
#271167 #671126 #516711 #116752
split-complementary
#271167 #675211 #266711
monochromatic
#0A041A #130832 #271167 #3B1A9C #4F22D0

Accessibility & contrast

On white

15.41
#271167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271167
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271167#FFFFFF#000000##FFFFFF
##2711671.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#032A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271167;
/* rgb */ color: rgb(39, 17, 103);
/* oklch */ color: oklch(27.8% 0.137 284.9);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#271167',
    950: '#000000',
  },
}
SCSS
$custom: #271167;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#271167",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 255.349,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27834,
    "c": 0.13702,
    "h": 284.9
  },
  "luminance": 0.01812
}

Semantic roles & 50–950 ramp

primary
#271167
secondary
#849F35
accent
#EE39C0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271167

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

Preview Lab → · Contrast checker → · Palette generator →

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