#271573#271573

#271573 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.148 H 281.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#271573
RGBrgb(39, 21, 115)
HSLhsl(251, 69%, 27%)
HSVhsv(251, 82%, 45%)
CMYKcmyk(66.1%, 81.7%, 0%, 54.9%)
CIE-LABlab(16.53, 36.53, -50.37)
CIE-LCHlch(16.53, 62.23, 305.95°)
OKLaboklab(29.68% 0.0288 -0.1453)
OKLCHoklch(29.68% 0.148 281.2)
XYZxyz(4.1984, 2.2052, 16.4207)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271573 #617315
analogous
#153273 #271573 #561573
triadic
#271573 #732715 #157327
tetradic
#271573 #731532 #617315 #157356
square
#271573 #731532 #617315 #157356
split-complementary
#271573 #735615 #327315
monochromatic
#09051A #150C3F #271573 #391EA7 #4C2AD8

Accessibility & contrast

On white

14.57
#271573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271573
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271573#FFFFFF#000000##FFFFFF
##2715731.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271573;
/* rgb */ color: rgb(39, 21, 115);
/* oklch */ color: oklch(29.7% 0.148 281.2);
Tailwind
colors: {
  custom: {
    50: '#6d569c',
    500: '#271573',
    950: '#000000',
  },
}
SCSS
$custom: #271573;
$custom-light: #6d569c;
$custom-dark: #000000;
JSON
{
  "hex": "#271573",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 251.489,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29675,
    "c": 0.14817,
    "h": 281.2
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#271573
secondary
#94A93B
accent
#EC3CCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271573

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

Preview Lab → · Contrast checker → · Palette generator →

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