#271577#271577

#271577 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.153 H 280.4°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#271577
RGBrgb(39, 21, 119)
HSLhsl(251, 70%, 27%)
HSVhsv(251, 82%, 47%)
CMYKcmyk(67.2%, 82.4%, 0%, 53.3%)
CIE-LABlab(16.98, 37.81, -52.20)
CIE-LCHlch(16.98, 64.45, 305.92°)
OKLaboklab(30.13% 0.0275 -0.1507)
OKLCHoklch(30.13% 0.153 280.4)
XYZxyz(4.4336, 2.2992, 17.6593)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271577 #657715
analogous
#153477 #271577 #581577
triadic
#271577 #772715 #157727
tetradic
#271577 #771534 #657715 #157758
square
#271577 #771534 #657715 #157758
split-complementary
#271577 #775815 #347715
monochromatic
#09051A #160C43 #271577 #381EAB #4C2DDA

Accessibility & contrast

On white

14.38
#271577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#271577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271577
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271577#FFFFFF#000000##FFFFFF
##2715771.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271577;
/* rgb */ color: rgb(39, 21, 119);
/* oklch */ color: oklch(30.1% 0.153 280.4);
Tailwind
colors: {
  custom: {
    50: '#6e569f',
    500: '#271577',
    950: '#000000',
  },
}
SCSS
$custom: #271577;
$custom-light: #6e569f;
$custom-dark: #000000;
JSON
{
  "hex": "#271577",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 251.02,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30128,
    "c": 0.15317,
    "h": 280.4
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#271577
secondary
#98AD3B
accent
#ED3BCC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271577

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

Preview Lab → · Contrast checker → · Palette generator →

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