#271174#271174

#271174 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.153 H 281.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#271174
RGBrgb(39, 17, 116)
HSLhsl(253, 74%, 26%)
HSVhsv(253, 85%, 45%)
CMYKcmyk(66.4%, 85.3%, 0%, 54.5%)
CIE-LABlab(15.97, 38.82, -51.95)
CIE-LCHlch(15.97, 64.85, 306.77°)
OKLaboklab(29.32% 0.0307 -0.1499)
OKLCHoklch(29.32% 0.153 281.6)
XYZxyz(4.1885, 2.0929, 16.7029)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271174 #5E7411
analogous
#112C74 #271174 #581174
triadic
#271174 #742711 #117427
tetradic
#271174 #74112C #5E7411 #117458
square
#271174 #74112C #5E7411 #117458
split-complementary
#271174 #745811 #2C7411
monochromatic
#09041B #15093F #271174 #3919A9 #4B21DE

Accessibility & contrast

On white

14.80
#271174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271174
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271174#FFFFFF#000000##FFFFFF
##2711741.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271174;
/* rgb */ color: rgb(39, 17, 116);
/* oklch */ color: oklch(29.3% 0.153 281.6);
Tailwind
colors: {
  custom: {
    50: '#6d539d',
    500: '#271174',
    950: '#000000',
  },
}
SCSS
$custom: #271174;
$custom-light: #6d539d;
$custom-dark: #000000;
JSON
{
  "hex": "#271174",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 253.333,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2932,
    "c": 0.15301,
    "h": 281.6
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#271174
secondary
#91AB36
accent
#F137C8
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271174

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

Preview Lab → · Contrast checker → · Palette generator →

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