#271190#271190

#271190 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.7% C 0.186 H 276.4°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#271190
RGBrgb(39, 17, 144)
HSLhsl(250, 79%, 32%)
HSVhsv(250, 88%, 56%)
CMYKcmyk(72.9%, 88.2%, 0%, 43.5%)
CIE-LABlab(19.41, 47.21, -63.98)
CIE-LCHlch(19.41, 79.51, 306.42°)
OKLaboklab(32.68% 0.0209 -0.1848)
OKLCHoklch(32.68% 0.186 276.4)
XYZxyz(6.0695, 2.8453, 26.6095)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271190 #7A9011
analogous
#113B90 #271190 #671190
triadic
#271190 #902711 #119027
tetradic
#271190 #90113B #7A9011 #119067
square
#271190 #90113B #7A9011 #119067
split-complementary
#271190 #906711 #3B9011
monochromatic
#090423 #180B59 #271190 #3617C7 #5334E7

Accessibility & contrast

On white

13.38
#271190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#271190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271190
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271190#FFFFFF#000000##FFFFFF
##2711901.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003493
Deuteranopia (green-blind)
#002A8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #271190;
/* rgb */ color: rgb(39, 17, 144);
/* oklch */ color: oklch(32.7% 0.186 276.4);
Tailwind
colors: {
  custom: {
    50: '#7456b2',
    500: '#271190',
    950: '#000000',
  },
}
SCSS
$custom: #271190;
$custom-light: #7456b2;
$custom-dark: #000000;
JSON
{
  "hex": "#271190",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 250.394,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32679,
    "c": 0.18601,
    "h": 276.4
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#271190
secondary
#ACC439
accent
#F532D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #271190

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

Preview Lab → · Contrast checker → · Palette generator →

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