#27156F#27156F

#27156F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.143 H 282.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#27156F
RGBrgb(39, 21, 111)
HSLhsl(252, 68%, 26%)
HSVhsv(252, 81%, 44%)
CMYKcmyk(64.9%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.08, 35.25, -48.52)
CIE-LCHlch(16.08, 59.97, 306.00°)
OKLaboklab(29.23% 0.03 -0.1399)
OKLCHoklch(29.23% 0.143 282.1)
XYZxyz(3.9732, 2.1151, 15.2347)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27156F #5D6F15
analogous
#15306F #27156F #54156F
triadic
#27156F #6F2715 #156F27
tetradic
#27156F #6F1530 #5D6F15 #156F54
square
#27156F #6F1530 #5D6F15 #156F54
split-complementary
#27156F #6F5415 #306F15
monochromatic
#09051A #150B3C #27156F #391FA2 #4B28D6

Accessibility & contrast

On white

14.76
#27156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#27156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27156F
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27156F#FFFFFF#000000##FFFFFF
##27156F1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #27156f;
/* rgb */ color: rgb(39, 21, 111);
/* oklch */ color: oklch(29.2% 0.143 282.1);
Tailwind
colors: {
  custom: {
    50: '#6c5599',
    500: '#27156f',
    950: '#000000',
  },
}
SCSS
$custom: #27156f;
$custom-light: #6c5599;
$custom-dark: #000000;
JSON
{
  "hex": "#27156f",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 252,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.14313,
    "h": 282.1
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#27156F
secondary
#90A53A
accent
#EB3DC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #27156F

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

Preview Lab → · Contrast checker → · Palette generator →

#27156F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva