#271563#271563

#271563 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.128 H 285.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#271563
RGBrgb(39, 21, 99)
HSLhsl(254, 65%, 24%)
HSVhsv(254, 79%, 39%)
CMYKcmyk(60.6%, 78.8%, 0%, 61.2%)
CIE-LABlab(14.78, 31.36, -42.78)
CIE-LCHlch(14.78, 53.05, 306.25°)
OKLaboklab(27.92% 0.0335 -0.1232)
OKLCHoklch(27.92% 0.128 285.2)
XYZxyz(3.3563, 1.8683, 11.9857)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271563 #516315
analogous
#152A63 #271563 #4E1563
triadic
#271563 #632715 #156327
tetradic
#271563 #63152A #516315 #15634E
square
#271563 #63152A #516315 #15634E
split-complementary
#271563 #634E15 #2A6315
monochromatic
#0A0519 #130A31 #271563 #3B2095 #4F2AC8

Accessibility & contrast

On white

15.29
#271563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271563
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271563#FFFFFF#000000##FFFFFF
##2715631.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#092B3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271563;
/* rgb */ color: rgb(39, 21, 99);
/* oklch */ color: oklch(27.9% 0.128 285.2);
Tailwind
colors: {
  custom: {
    50: '#695490',
    500: '#271563',
    950: '#000000',
  },
}
SCSS
$custom: #271563;
$custom-light: #695490;
$custom-dark: #000000;
JSON
{
  "hex": "#271563",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 253.846,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27924,
    "c": 0.12765,
    "h": 285.2
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#271563
secondary
#849A3A
accent
#E840C1
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271563

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

Preview Lab → · Contrast checker → · Palette generator →

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