#271471#271471

#271471 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.147 H 281.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#271471
RGBrgb(39, 20, 113)
HSLhsl(252, 70%, 26%)
HSVhsv(252, 82%, 44%)
CMYKcmyk(65.5%, 82.3%, 0%, 55.7%)
CIE-LABlab(16.12, 36.42, -49.75)
CIE-LCHlch(16.12, 61.65, 306.21°)
OKLaboklab(29.33% 0.03 -0.1435)
OKLCHoklch(29.33% 0.147 281.8)
XYZxyz(4.0666, 2.1236, 15.8152)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271471 #5E7114
analogous
#142F71 #271471 #551471
triadic
#271471 #712714 #147127
tetradic
#271471 #71142F #5E7114 #147155
square
#271471 #71142F #5E7114 #147155
split-complementary
#271471 #715514 #2F7114
monochromatic
#09051A #150B3D #271471 #391DA5 #4B27D9

Accessibility & contrast

On white

14.74
#271471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271471
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271471#FFFFFF#000000##FFFFFF
##2714711.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271471;
/* rgb */ color: rgb(39, 20, 113);
/* oklch */ color: oklch(29.3% 0.147 281.8);
Tailwind
colors: {
  custom: {
    50: '#6c559b',
    500: '#271471',
    950: '#000000',
  },
}
SCSS
$custom: #271471;
$custom-light: #6c559b;
$custom-dark: #000000;
JSON
{
  "hex": "#271471",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 252.258,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29325,
    "c": 0.14663,
    "h": 281.8
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#271471
secondary
#91A739
accent
#ED3BC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271471

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

Preview Lab → · Contrast checker → · Palette generator →

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