#27157C#27157C

#27157C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.159 H 279.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#27157C
RGBrgb(39, 21, 124)
HSLhsl(250, 71%, 28%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(68.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.56, 39.39, -54.44)
CIE-LCHlch(17.56, 67.20, 305.89°)
OKLaboklab(30.7% 0.026 -0.1572)
OKLCHoklch(30.7% 0.159 279.4)
XYZxyz(4.7418, 2.4225, 19.2826)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157C #6A7C15
analogous
#15377C #27157C #5A157C
triadic
#27157C #7C2715 #157C27
tetradic
#27157C #7C1537 #6A7C15 #157C5A
square
#27157C #7C1537 #6A7C15 #157C5A
split-complementary
#27157C #7C5A15 #377C15
monochromatic
#08041A #170C48 #27157C #371EB0 #4E30DC

Accessibility & contrast

On white

14.15
#27157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#27157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27157C
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157C#FFFFFF#000000##FFFFFF
##27157C1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #27157c;
/* rgb */ color: rgb(39, 21, 124);
/* oklch */ color: oklch(30.7% 0.159 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f56a3',
    500: '#27157c',
    950: '#000000',
  },
}
SCSS
$custom: #27157c;
$custom-light: #6f56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27157c",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 250.485,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30701,
    "c": 0.15934,
    "h": 279.4
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#27157C
secondary
#9DB13C
accent
#EE3ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27157C

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

Preview Lab → · Contrast checker → · Palette generator →

#27157C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva