#271568#271568

#271568 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.134 H 283.8°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#271568
RGBrgb(39, 21, 104)
HSLhsl(253, 66%, 25%)
HSVhsv(253, 80%, 41%)
CMYKcmyk(62.5%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.31, 32.99, -45.21)
CIE-LCHlch(15.31, 55.96, 306.12°)
OKLaboklab(28.46% 0.0321 -0.1303)
OKLCHoklch(28.46% 0.134 283.8)
XYZxyz(3.6028, 1.9669, 13.2838)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271568 #566815
analogous
#152D68 #271568 #511568
triadic
#271568 #682715 #156827
tetradic
#271568 #68152D #566815 #156851
square
#271568 #68152D #566815 #156851
split-complementary
#271568 #685115 #2D6815
monochromatic
#0A0519 #140B35 #271568 #3A1F9B #4D2ACE

Accessibility & contrast

On white

15.07
#271568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271568
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271568#FFFFFF#000000##FFFFFF
##2715681.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#002D3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271568;
/* rgb */ color: rgb(39, 21, 104);
/* oklch */ color: oklch(28.5% 0.134 283.8);
Tailwind
colors: {
  custom: {
    50: '#6a5594',
    500: '#271568',
    950: '#000000',
  },
}
SCSS
$custom: #271568;
$custom-light: #6a5594;
$custom-dark: #000000;
JSON
{
  "hex": "#271568",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 253.012,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2846,
    "c": 0.13417,
    "h": 283.8
  },
  "luminance": 0.01967
}

Semantic roles & 50–950 ramp

primary
#271568
secondary
#899F3A
accent
#E93EC4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271568

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

Preview Lab → · Contrast checker → · Palette generator →

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