#27157F#27157F

#27157F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.163 H 278.8°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#27157F
RGBrgb(39, 21, 127)
HSLhsl(250, 72%, 29%)
HSVhsv(250, 83%, 50%)
CMYKcmyk(69.3%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.92, 40.33, -55.77)
CIE-LCHlch(17.92, 68.83, 305.87°)
OKLaboklab(31.05% 0.025 -0.1611)
OKLCHoklch(31.05% 0.163 278.8)
XYZxyz(4.9344, 2.4996, 20.2970)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27157F #6D7F15
analogous
#15387F #27157F #5C157F
triadic
#27157F #7F2715 #157F27
tetradic
#27157F #7F1538 #6D7F15 #157F5C
square
#27157F #7F1538 #6D7F15 #157F5C
split-complementary
#27157F #7F5C15 #387F15
monochromatic
#08041A #170C4A #27157F #371EB4 #4F31DD

Accessibility & contrast

On white

14.00
#27157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#27157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27157F
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27157F#FFFFFF#000000##FFFFFF
##27157F1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27157f;
/* rgb */ color: rgb(39, 21, 127);
/* oklch */ color: oklch(31.0% 0.163 278.8);
Tailwind
colors: {
  custom: {
    50: '#7056a5',
    500: '#27157f',
    950: '#000000',
  },
}
SCSS
$custom: #27157f;
$custom-light: #7056a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27157f",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 250.189,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31048,
    "c": 0.163,
    "h": 278.8
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#27157F
secondary
#A0B43C
accent
#EE39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #27157F

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

Preview Lab → · Contrast checker → · Palette generator →

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