#271276#271276

#271276 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.155 H 281.0°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#271276
RGBrgb(39, 18, 118)
HSLhsl(253, 74%, 27%)
HSVhsv(253, 85%, 46%)
CMYKcmyk(66.9%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.36, 38.97, -52.58)
CIE-LCHlch(16.36, 65.45, 306.54°)
OKLaboklab(29.66% 0.0295 -0.1517)
OKLCHoklch(29.66% 0.155 281)
XYZxyz(4.3220, 2.1716, 17.3274)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271276 #617612
analogous
#122F76 #271276 #591276
triadic
#271276 #762712 #127627
tetradic
#271276 #76122F #617612 #127659
square
#271276 #76122F #617612 #127659
split-complementary
#271276 #765912 #2F7612
monochromatic
#09041B #150A41 #271276 #391AAB #4C25DE

Accessibility & contrast

On white

14.64
#271276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271276
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271276#FFFFFF#000000##FFFFFF
##2712761.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271276;
/* rgb */ color: rgb(39, 18, 118);
/* oklch */ color: oklch(29.7% 0.155 281.0);
Tailwind
colors: {
  custom: {
    50: '#6e549f',
    500: '#271276',
    950: '#000000',
  },
}
SCSS
$custom: #271276;
$custom-light: #6e549f;
$custom-dark: #000000;
JSON
{
  "hex": "#271276",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 252.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29663,
    "c": 0.15459,
    "h": 281
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#271276
secondary
#94AD37
accent
#F038C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271276

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

Preview Lab → · Contrast checker → · Palette generator →

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