#271572#271572

#271572 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.147 H 281.4°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#271572
RGBrgb(39, 21, 114)
HSLhsl(252, 69%, 26%)
HSVhsv(252, 82%, 45%)
CMYKcmyk(65.8%, 81.6%, 0%, 55.3%)
CIE-LABlab(16.42, 36.22, -49.91)
CIE-LCHlch(16.42, 61.67, 305.96°)
OKLaboklab(29.56% 0.0291 -0.144)
OKLCHoklch(29.56% 0.147 281.4)
XYZxyz(4.1412, 2.1823, 16.1193)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271572 #607215
analogous
#153272 #271572 #561572
triadic
#271572 #722715 #157227
tetradic
#271572 #721532 #607215 #157256
square
#271572 #721532 #607215 #157256
split-complementary
#271572 #725615 #327215
monochromatic
#09051A #150B3E #271572 #391FA6 #4B2AD8

Accessibility & contrast

On white

14.62
#271572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271572
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271572#FFFFFF#000000##FFFFFF
##2715721.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271572;
/* rgb */ color: rgb(39, 21, 114);
/* oklch */ color: oklch(29.6% 0.147 281.4);
Tailwind
colors: {
  custom: {
    50: '#6d559c',
    500: '#271572',
    950: '#000000',
  },
}
SCSS
$custom: #271572;
$custom-light: #6d559c;
$custom-dark: #000000;
JSON
{
  "hex": "#271572",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 251.613,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29563,
    "c": 0.14692,
    "h": 281.4
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#271572
secondary
#93A83B
accent
#EC3CCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271572

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

Preview Lab → · Contrast checker → · Palette generator →

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