#271159#271159

#271159 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.119 H 289.5°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#271159
RGBrgb(39, 17, 89)
HSLhsl(258, 68%, 21%)
HSVhsv(258, 81%, 35%)
CMYKcmyk(56.2%, 80.9%, 0%, 65.1%)
CIE-LABlab(12.94, 30.39, -39.11)
CIE-LCHlch(12.94, 49.53, 307.85°)
OKLaboklab(26.31% 0.0398 -0.1124)
OKLCHoklch(26.31% 0.119 289.5)
XYZxyz(2.8398, 1.5534, 9.5995)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271159 #435911
analogous
#111F59 #271159 #4B1159
triadic
#271159 #592711 #115927
tetradic
#271159 #59111F #435911 #11594B
square
#271159 #59111F #435911 #11594B
split-complementary
#271159 #594B11 #1F5911
monochromatic
#0B051A #100726 #271159 #3E1B8C #5425C0

Accessibility & contrast

On white

16.02
#271159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271159
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271159#FFFFFF#000000##FFFFFF
##2711591.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235B
Deuteranopia (green-blind)
#002058
Tritanopia (blue-blind)
#142534
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271159;
/* rgb */ color: rgb(39, 17, 89);
/* oklch */ color: oklch(26.3% 0.119 289.5);
Tailwind
colors: {
  custom: {
    50: '#685289',
    500: '#271159',
    950: '#000000',
  },
}
SCSS
$custom: #271159;
$custom-light: #685289;
$custom-dark: #000000;
JSON
{
  "hex": "#271159",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 258.333,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26313,
    "c": 0.11924,
    "h": 289.5
  },
  "luminance": 0.01554
}

Semantic roles & 50–950 ramp

primary
#271159
secondary
#759234
accent
#EB3DB6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #271159

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

Preview Lab → · Contrast checker → · Palette generator →

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