#271266#271266

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

Color values

HEX#271266
RGBrgb(39, 18, 102)
HSLhsl(255, 70%, 24%)
HSVhsv(255, 82%, 40%)
CMYKcmyk(61.8%, 82.4%, 0%, 60%)
CIE-LABlab(14.53, 33.97, -45.18)
CIE-LCHlch(14.53, 56.52, 306.94°)
OKLaboklab(27.85% 0.0349 -0.1302)
OKLCHoklch(27.85% 0.135 285)
XYZxyz(3.4505, 1.8230, 12.7379)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271266 #516612
analogous
#122766 #271266 #511266
triadic
#271266 #662712 #126627
tetradic
#271266 #661227 #516612 #126651
square
#271266 #661227 #516612 #126651
split-complementary
#271266 #665112 #276612
monochromatic
#0A051A #130932 #271266 #3B1B9A #4F24CE

Accessibility & contrast

On white

15.39
#271266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271266
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271266#FFFFFF#000000##FFFFFF
##2712661.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#042A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271266;
/* rgb */ color: rgb(39, 18, 102);
/* oklch */ color: oklch(27.8% 0.135 285.0);
Tailwind
colors: {
  custom: {
    50: '#6a5393',
    500: '#271266',
    950: '#000000',
  },
}
SCSS
$custom: #271266;
$custom-light: #6a5393;
$custom-dark: #000000;
JSON
{
  "hex": "#271266",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 255,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27846,
    "c": 0.13476,
    "h": 285
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#271266
secondary
#849E36
accent
#ED3BC0
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271266

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

Preview Lab → · Contrast checker → · Palette generator →

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