#271367#271367

#271367 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.135 H 284.5°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#271367
RGBrgb(39, 19, 103)
HSLhsl(254, 69%, 24%)
HSVhsv(254, 82%, 40%)
CMYKcmyk(62.1%, 81.6%, 0%, 59.6%)
CIE-LABlab(14.82, 33.76, -45.35)
CIE-LCHlch(14.82, 56.54, 306.66°)
OKLaboklab(28.08% 0.0339 -0.1307)
OKLCHoklch(28.08% 0.135 284.5)
XYZxyz(3.5170, 1.8761, 13.0061)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271367 #536713
analogous
#132967 #271367 #511367
triadic
#271367 #672713 #136727
tetradic
#271367 #671329 #536713 #136751
square
#271367 #671329 #536713 #136751
split-complementary
#271367 #675113 #296713
monochromatic
#0A051A #130933 #271367 #3B1D9B #4E26CE

Accessibility & contrast

On white

15.27
#271367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271367
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271367#FFFFFF#000000##FFFFFF
##2713671.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#022B3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271367;
/* rgb */ color: rgb(39, 19, 103);
/* oklch */ color: oklch(28.1% 0.135 284.5);
Tailwind
colors: {
  custom: {
    50: '#6a5493',
    500: '#271367',
    950: '#000000',
  },
}
SCSS
$custom: #271367;
$custom-light: #6a5493;
$custom-dark: #000000;
JSON
{
  "hex": "#271367",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 254.286,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28084,
    "c": 0.13501,
    "h": 284.5
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#271367
secondary
#869E37
accent
#EC3CC2
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271367

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

Preview Lab → · Contrast checker → · Palette generator →

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