#270728#270728

#270728 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.073 H 326.6°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#270728
RGBrgb(39, 7, 40)
HSLhsl(298, 70%, 9%)
HSVhsv(298, 83%, 16%)
CMYKcmyk(2.5%, 82.5%, 0%, 84.3%)
CIE-LABlab(6.65, 21.80, -14.41)
CIE-LCHlch(6.65, 26.13, 326.52°)
OKLaboklab(20.41% 0.0612 -0.0403)
OKLCHoklch(20.41% 0.073 326.6)
XYZxyz(1.2957, 0.7366, 2.0810)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270728 #082807
analogous
#170728 #270728 #280719
triadic
#270728 #282707 #072827
tetradic
#270728 #281707 #082807 #071928
square
#270728 #281707 #082807 #071928
split-complementary
#270728 #192807 #072817
monochromatic
#19051A #19051A #270728 #5A105C #8D1990

Accessibility & contrast

On white

18.31
#270728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#270728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270728
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270728#FFFFFF#000000##FFFFFF
##2707281.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031229
Deuteranopia (green-blind)
#0E1627
Tritanopia (blue-blind)
#280C16
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #270728;
/* rgb */ color: rgb(39, 7, 40);
/* oklch */ color: oklch(20.4% 0.073 326.6);
Tailwind
colors: {
  custom: {
    50: '#624962',
    500: '#270728',
    950: '#000000',
  },
}
SCSS
$custom: #270728;
$custom-light: #624962;
$custom-dark: #000000;
JSON
{
  "hex": "#270728",
  "rgb": {
    "r": 39,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 298.182,
    "s": 70.213,
    "l": 9.216
  },
  "oklch": {
    "l": 0.20409,
    "c": 0.07329,
    "h": 326.6
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#270728
secondary
#256823
accent
#ED3B40
background
#F5F4F5
surface
#EAE7EA
border
#C6C3C6
text
#050105
muted
#797779

Preview Lab

Preview with #270728

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

Preview Lab → · Contrast checker → · Palette generator →

#270728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva