#271280#271280

#271280 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.167 H 279.0°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#271280
RGBrgb(39, 18, 128)
HSLhsl(251, 75%, 29%)
HSVhsv(251, 86%, 50%)
CMYKcmyk(69.5%, 85.9%, 0%, 49.8%)
CIE-LABlab(17.56, 42.03, -57.00)
CIE-LCHlch(17.56, 70.82, 306.41°)
OKLaboklab(30.84% 0.0261 -0.1646)
OKLCHoklch(30.84% 0.167 279)
XYZxyz(4.9480, 2.4220, 20.6246)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271280 #6B8012
analogous
#123480 #271280 #5E1280
triadic
#271280 #802712 #128027
tetradic
#271280 #801234 #6B8012 #12805E
square
#271280 #801234 #6B8012 #12805E
split-complementary
#271280 #805E12 #348012
monochromatic
#08041B #170A4A #271280 #371AB6 #4E2BE1

Accessibility & contrast

On white

14.15
#271280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271280
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271280#FFFFFF#000000##FFFFFF
##2712801.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271280;
/* rgb */ color: rgb(39, 18, 128);
/* oklch */ color: oklch(30.8% 0.167 279.0);
Tailwind
colors: {
  custom: {
    50: '#7055a6',
    500: '#271280',
    950: '#000000',
  },
}
SCSS
$custom: #271280;
$custom-light: #7055a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271280",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 251.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30839,
    "c": 0.16663,
    "h": 279
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#271280
secondary
#9EB638
accent
#F236CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271280

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

Preview Lab → · Contrast checker → · Palette generator →

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