#271068#271068

#271068 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.139 H 284.8°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#271068
RGBrgb(39, 16, 104)
HSLhsl(256, 73%, 24%)
HSVhsv(256, 85%, 41%)
CMYKcmyk(62.5%, 84.6%, 0%, 59.2%)
CIE-LABlab(14.41, 35.59, -46.70)
CIE-LCHlch(14.41, 58.72, 307.32°)
OKLaboklab(27.83% 0.0356 -0.1346)
OKLCHoklch(27.83% 0.139 284.8)
XYZxyz(3.5199, 1.8012, 13.2562)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271068 #516810
analogous
#102568 #271068 #531068
triadic
#271068 #682710 #106827
tetradic
#271068 #681025 #516810 #106853
square
#271068 #681025 #516810 #106853
split-complementary
#271068 #685310 #256810
monochromatic
#0A041B #130833 #271068 #3B189D #4F20D2

Accessibility & contrast

On white

15.44
#271068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271068
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271068#FFFFFF#000000##FFFFFF
##2710681.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#012B3C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271068;
/* rgb */ color: rgb(39, 16, 104);
/* oklch */ color: oklch(27.8% 0.139 284.8);
Tailwind
colors: {
  custom: {
    50: '#6b5294',
    500: '#271068',
    950: '#000000',
  },
}
SCSS
$custom: #271068;
$custom-light: #6b5294;
$custom-dark: #000000;
JSON
{
  "hex": "#271068",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 255.682,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27828,
    "c": 0.13921,
    "h": 284.8
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#271068
secondary
#84A034
accent
#F038C0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271068

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

Preview Lab → · Contrast checker → · Palette generator →

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