#271072#271072

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

Color values

HEX#271072
RGBrgb(39, 16, 114)
HSLhsl(254, 75%, 25%)
HSVhsv(254, 86%, 45%)
CMYKcmyk(65.8%, 86%, 0%, 55.3%)
CIE-LABlab(15.57, 38.67, -51.30)
CIE-LCHlch(15.57, 64.24, 307.00°)
OKLaboklab(28.98% 0.032 -0.148)
OKLCHoklch(28.98% 0.151 282.2)
XYZxyz(4.0583, 2.0165, 16.0917)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271072 #5B7210
analogous
#102A72 #271072 #581072
triadic
#271072 #722710 #107227
tetradic
#271072 #72102A #5B7210 #107258
square
#271072 #72102A #5B7210 #107258
split-complementary
#271072 #725810 #2A7210
monochromatic
#09041B #15083C #271072 #3918A8 #4C1FDD

Accessibility & contrast

On white

14.96
#271072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271072
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271072#FFFFFF#000000##FFFFFF
##2710721.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271072;
/* rgb */ color: rgb(39, 16, 114);
/* oklch */ color: oklch(29.0% 0.151 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d539c',
    500: '#271072',
    950: '#000000',
  },
}
SCSS
$custom: #271072;
$custom-light: #6d539c;
$custom-dark: #000000;
JSON
{
  "hex": "#271072",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 254.082,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28979,
    "c": 0.15142,
    "h": 282.2
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#271072
secondary
#8EA934
accent
#F236C6
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271072

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

Preview Lab → · Contrast checker → · Palette generator →

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