#27125B#27125B

#27125B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.121 H 288.5°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#27125B
RGBrgb(39, 18, 91)
HSLhsl(257, 67%, 21%)
HSVhsv(257, 80%, 36%)
CMYKcmyk(57.1%, 80.2%, 0%, 64.3%)
CIE-LABlab(13.35, 30.48, -39.80)
CIE-LCHlch(13.35, 50.13, 307.44°)
OKLaboklab(26.66% 0.0383 -0.1144)
OKLCHoklch(26.66% 0.121 288.5)
XYZxyz(2.9408, 1.6191, 10.0531)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27125B #465B12
analogous
#12225B #27125B #4C125B
triadic
#27125B #5B2712 #125B27
tetradic
#27125B #5B1222 #465B12 #125B4C
square
#27125B #5B1222 #465B12 #125B4C
split-complementary
#27125B #5B4C12 #225B12
monochromatic
#0B051A #110828 #27125B #3D1C8E #5326C1

Accessibility & contrast

On white

15.86
#27125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#27125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27125B
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27125B#FFFFFF#000000##FFFFFF
##27125B1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#132635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #27125b;
/* rgb */ color: rgb(39, 18, 91);
/* oklch */ color: oklch(26.7% 0.121 288.5);
Tailwind
colors: {
  custom: {
    50: '#68528a',
    500: '#27125b',
    950: '#000000',
  },
}
SCSS
$custom: #27125b;
$custom-light: #68528a;
$custom-dark: #000000;
JSON
{
  "hex": "#27125b",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 257.26,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26659,
    "c": 0.12067,
    "h": 288.5
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#27125B
secondary
#789335
accent
#EA3EB8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #27125B

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

Preview Lab → · Contrast checker → · Palette generator →

#27125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva