#27155A#27155A

#27155A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 288.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#27155A
RGBrgb(39, 21, 90)
HSLhsl(256, 62%, 22%)
HSVhsv(256, 77%, 35%)
CMYKcmyk(56.7%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.86, 28.42, -38.28)
CIE-LCHlch(13.86, 47.68, 306.59°)
OKLaboklab(26.99% 0.0357 -0.11)
OKLCHoklch(26.99% 0.116 288)
XYZxyz(2.9498, 1.7057, 9.8447)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27155A #485A15
analogous
#15265A #27155A #4A155A
triadic
#27155A #5A2715 #155A27
tetradic
#27155A #5A1526 #485A15 #155A4A
square
#27155A #5A1526 #485A15 #155A4A
split-complementary
#27155A #5A4A15 #265A15
monochromatic
#0B0619 #110928 #27155A #3D218C #522CBD

Accessibility & contrast

On white

15.66
#27155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#27155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27155A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27155A#FFFFFF#000000##FFFFFF
##27155A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#132736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #27155a;
/* rgb */ color: rgb(39, 21, 90);
/* oklch */ color: oklch(27.0% 0.116 288.0);
Tailwind
colors: {
  custom: {
    50: '#685489',
    500: '#27155a',
    950: '#000000',
  },
}
SCSS
$custom: #27155a;
$custom-light: #685489;
$custom-dark: #000000;
JSON
{
  "hex": "#27155a",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 255.652,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26992,
    "c": 0.11567,
    "h": 288
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#27155A
secondary
#7B9239
accent
#E543BB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #27155A

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

Preview Lab → · Contrast checker → · Palette generator →

#27155A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva