#271663#271663

#271663 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.126 H 284.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#271663
RGBrgb(39, 22, 99)
HSLhsl(253, 64%, 24%)
HSVhsv(253, 78%, 39%)
CMYKcmyk(60.6%, 77.8%, 0%, 61.2%)
CIE-LABlab(14.98, 30.79, -42.45)
CIE-LCHlch(14.98, 52.44, 305.96°)
OKLaboklab(28.07% 0.0326 -0.1222)
OKLCHoklch(28.07% 0.126 284.9)
XYZxyz(3.3751, 1.9058, 11.9920)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271663 #526316
analogous
#162B63 #271663 #4D1663
triadic
#271663 #632716 #166327
tetradic
#271663 #63162B #526316 #16634D
square
#271663 #63162B #526316 #16634D
split-complementary
#271663 #634D16 #2B6316
monochromatic
#0A0619 #130B31 #271663 #3B2195 #4E2CC7

Accessibility & contrast

On white

15.20
#271663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271663 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271663
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271663#FFFFFF#000000##FFFFFF
##2716631.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#082B3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271663;
/* rgb */ color: rgb(39, 22, 99);
/* oklch */ color: oklch(28.1% 0.126 284.9);
Tailwind
colors: {
  custom: {
    50: '#695590',
    500: '#271663',
    950: '#000000',
  },
}
SCSS
$custom: #271663;
$custom-light: #695590;
$custom-dark: #000000;
JSON
{
  "hex": "#271663",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 253.247,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28069,
    "c": 0.12649,
    "h": 284.9
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#271663
secondary
#859A3B
accent
#E741C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #271663

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

Preview Lab → · Contrast checker → · Palette generator →

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