#271073#271073

#271073 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.1% C 0.153 H 282.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#271073
RGBrgb(39, 16, 115)
HSLhsl(254, 76%, 26%)
HSVhsv(254, 86%, 45%)
CMYKcmyk(66.1%, 86.1%, 0%, 54.9%)
CIE-LABlab(15.69, 38.97, -51.75)
CIE-LCHlch(15.69, 64.79, 306.98°)
OKLaboklab(29.1% 0.0316 -0.1493)
OKLCHoklch(29.1% 0.153 282)
XYZxyz(4.1155, 2.0394, 16.3931)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271073 #5C7310
analogous
#102B73 #271073 #581073
triadic
#271073 #732710 #107327
tetradic
#271073 #73102B #5C7310 #107358
square
#271073 #73102B #5C7310 #107358
split-complementary
#271073 #735810 #2B7310
monochromatic
#09041B #15093D #271073 #3917A9 #4B1FDE

Accessibility & contrast

On white

14.91
#271073 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271073
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271073#FFFFFF#000000##FFFFFF
##2710731.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002471
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271073;
/* rgb */ color: rgb(39, 16, 115);
/* oklch */ color: oklch(29.1% 0.153 282.0);
Tailwind
colors: {
  custom: {
    50: '#6d539c',
    500: '#271073',
    950: '#000000',
  },
}
SCSS
$custom: #271073;
$custom-light: #6d539c;
$custom-dark: #000000;
JSON
{
  "hex": "#271073",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 115
  },
  "hsl": {
    "h": 253.939,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29096,
    "c": 0.15262,
    "h": 282
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #271073

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

Preview Lab → · Contrast checker → · Palette generator →

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