#271270#271270

#271270 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.147 H 282.4°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#271270
RGBrgb(39, 18, 112)
HSLhsl(253, 72%, 25%)
HSVhsv(253, 84%, 44%)
CMYKcmyk(65.2%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.66, 37.10, -49.86)
CIE-LCHlch(15.66, 62.15, 306.66°)
OKLaboklab(28.97% 0.0316 -0.1438)
OKLCHoklch(28.97% 0.147 282.4)
XYZxyz(3.9767, 2.0335, 15.5090)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271270 #5B7012
analogous
#122C70 #271270 #561270
triadic
#271270 #702712 #127027
tetradic
#271270 #70122C #5B7012 #127056
square
#271270 #70122C #5B7012 #127056
split-complementary
#271270 #705612 #2C7012
monochromatic
#09041A #150A3B #271270 #391AA5 #4C23D9

Accessibility & contrast

On white

14.93
#271270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271270
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271270#FFFFFF#000000##FFFFFF
##2712701.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271270;
/* rgb */ color: rgb(39, 18, 112);
/* oklch */ color: oklch(29.0% 0.147 282.4);
Tailwind
colors: {
  custom: {
    50: '#6c549a',
    500: '#271270',
    950: '#000000',
  },
}
SCSS
$custom: #271270;
$custom-light: #6c549a;
$custom-dark: #000000;
JSON
{
  "hex": "#271270",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 253.404,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28971,
    "c": 0.14725,
    "h": 282.4
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#271270
secondary
#8EA737
accent
#EF39C6
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271270

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

Preview Lab → · Contrast checker → · Palette generator →

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