#271570#271570

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

Color values

HEX#271570
RGBrgb(39, 21, 112)
HSLhsl(252, 68%, 26%)
HSVhsv(252, 81%, 44%)
CMYKcmyk(65.2%, 81.2%, 0%, 56.1%)
CIE-LABlab(16.19, 35.58, -48.99)
CIE-LCHlch(16.19, 60.54, 305.99°)
OKLaboklab(29.34% 0.0297 -0.1413)
OKLCHoklch(29.34% 0.144 281.9)
XYZxyz(4.0286, 2.1372, 15.5263)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271570 #5E7015
analogous
#153070 #271570 #541570
triadic
#271570 #702715 #157027
tetradic
#271570 #701530 #5E7015 #157054
square
#271570 #701530 #5E7015 #157054
split-complementary
#271570 #705415 #307015
monochromatic
#09051A #150B3C #271570 #391FA4 #4B29D7

Accessibility & contrast

On white

14.71
#271570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271570
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271570#FFFFFF#000000##FFFFFF
##2715701.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271570;
/* rgb */ color: rgb(39, 21, 112);
/* oklch */ color: oklch(29.3% 0.144 281.9);
Tailwind
colors: {
  custom: {
    50: '#6c559a',
    500: '#271570',
    950: '#000000',
  },
}
SCSS
$custom: #271570;
$custom-light: #6c559a;
$custom-dark: #000000;
JSON
{
  "hex": "#271570",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 251.868,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.1444,
    "h": 281.9
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#271570
secondary
#91A63B
accent
#EB3DC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271570

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

Preview Lab → · Contrast checker → · Palette generator →

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