#271071#271071

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

Color values

HEX#271071
RGBrgb(39, 16, 113)
HSLhsl(254, 75%, 25%)
HSVhsv(254, 86%, 44%)
CMYKcmyk(65.5%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.46, 38.36, -50.85)
CIE-LCHlch(15.46, 63.70, 307.03°)
OKLaboklab(28.86% 0.0324 -0.1467)
OKLCHoklch(28.86% 0.15 282.4)
XYZxyz(4.0017, 1.9939, 15.7936)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271071 #5A7110
analogous
#102971 #271071 #571071
triadic
#271071 #712710 #107127
tetradic
#271071 #711029 #5A7110 #107157
square
#271071 #711029 #5A7110 #107157
split-complementary
#271071 #715710 #297110
monochromatic
#09041B #14083B #271071 #3A18A7 #4C1FDC

Accessibility & contrast

On white

15.01
#271071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271071
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271071#FFFFFF#000000##FFFFFF
##2710711.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271071;
/* rgb */ color: rgb(39, 16, 113);
/* oklch */ color: oklch(28.9% 0.150 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d539b',
    500: '#271071',
    950: '#000000',
  },
}
SCSS
$custom: #271071;
$custom-light: #6d539b;
$custom-dark: #000000;
JSON
{
  "hex": "#271071",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 254.227,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28862,
    "c": 0.15021,
    "h": 282.4
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#271071
secondary
#8DA934
accent
#F236C5
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271071

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

Preview Lab → · Contrast checker → · Palette generator →

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