#271578#271578

#271578 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.154 H 280.2°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#271578
RGBrgb(39, 21, 120)
HSLhsl(251, 70%, 28%)
HSVhsv(251, 83%, 47%)
CMYKcmyk(67.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.10, 38.13, -52.65)
CIE-LCHlch(17.10, 65.01, 305.91°)
OKLaboklab(30.24% 0.0272 -0.152)
OKLCHoklch(30.24% 0.154 280.2)
XYZxyz(4.4940, 2.3234, 17.9773)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271578 #667815
analogous
#153478 #271578 #581578
triadic
#271578 #782715 #157827
tetradic
#271578 #781534 #667815 #157858
square
#271578 #781534 #667815 #157858
split-complementary
#271578 #785815 #347815
monochromatic
#08051A #160C44 #271578 #381EAC #4D2DDA

Accessibility & contrast

On white

14.34
#271578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271578
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271578#FFFFFF#000000##FFFFFF
##2715781.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271578;
/* rgb */ color: rgb(39, 21, 120);
/* oklch */ color: oklch(30.2% 0.154 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e56a0',
    500: '#271578',
    950: '#000000',
  },
}
SCSS
$custom: #271578;
$custom-light: #6e56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271578",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 250.909,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30242,
    "c": 0.15441,
    "h": 280.2
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#271578
secondary
#99AE3B
accent
#ED3BCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271578

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

Preview Lab → · Contrast checker → · Palette generator →

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