#271076#271076

#271076 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.156 H 281.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#271076
RGBrgb(39, 16, 118)
HSLhsl(254, 76%, 26%)
HSVhsv(254, 86%, 46%)
CMYKcmyk(66.9%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.05, 39.88, -53.10)
CIE-LCHlch(16.05, 66.41, 306.91°)
OKLaboklab(29.45% 0.0305 -0.1532)
OKLCHoklch(29.45% 0.156 281.3)
XYZxyz(4.2910, 2.1096, 17.3171)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271076 #5F7610
analogous
#102C76 #271076 #5A1076
triadic
#271076 #762710 #107627
tetradic
#271076 #76102C #5F7610 #10765A
square
#271076 #76102C #5F7610 #10765A
split-complementary
#271076 #765A10 #2C7610
monochromatic
#09041B #150940 #271076 #3917AC #4B20E1

Accessibility & contrast

On white

14.77
#271076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271076
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271076#FFFFFF#000000##FFFFFF
##2710761.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271076;
/* rgb */ color: rgb(39, 16, 118);
/* oklch */ color: oklch(29.4% 0.156 281.3);
Tailwind
colors: {
  custom: {
    50: '#6e539f',
    500: '#271076',
    950: '#000000',
  },
}
SCSS
$custom: #271076;
$custom-light: #6e539f;
$custom-dark: #000000;
JSON
{
  "hex": "#271076",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 253.529,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29448,
    "c": 0.15623,
    "h": 281.3
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#271076
secondary
#92AD35
accent
#F335C8
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271076

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

Preview Lab → · Contrast checker → · Palette generator →

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