#271478#271478

#271478 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.155 H 280.3°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#271478
RGBrgb(39, 20, 120)
HSLhsl(251, 71%, 27%)
HSVhsv(251, 83%, 47%)
CMYKcmyk(67.5%, 83.3%, 0%, 52.9%)
CIE-LABlab(16.93, 38.63, -52.93)
CIE-LCHlch(16.93, 65.53, 306.12°)
OKLaboklab(30.12% 0.0278 -0.1528)
OKLCHoklch(30.12% 0.155 280.3)
XYZxyz(4.4759, 2.2874, 17.9713)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271478 #657814
analogous
#143378 #271478 #591478
triadic
#271478 #782714 #147827
tetradic
#271478 #781433 #657814 #147859
square
#271478 #781433 #657814 #147859
split-complementary
#271478 #785914 #337814
monochromatic
#09041A #160B44 #271478 #381DAC #4C2BDC

Accessibility & contrast

On white

14.41
#271478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271478
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271478#FFFFFF#000000##FFFFFF
##2714781.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271478;
/* rgb */ color: rgb(39, 20, 120);
/* oklch */ color: oklch(30.1% 0.155 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e55a0',
    500: '#271478',
    950: '#000000',
  },
}
SCSS
$custom: #271478;
$custom-light: #6e55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#271478",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 251.4,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30122,
    "c": 0.1553,
    "h": 280.3
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#271478
secondary
#98AE3A
accent
#EE3ACC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #271478

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

Preview Lab → · Contrast checker → · Palette generator →

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