#270732#270732

#270732 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.084 H 316.0°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#270732
RGBrgb(39, 7, 50)
HSLhsl(285, 75%, 11%)
HSVhsv(285, 86%, 20%)
CMYKcmyk(22%, 86%, 0%, 80.4%)
CIE-LABlab(7.35, 24.45, -20.78)
CIE-LCHlch(7.35, 32.09, 319.63°)
OKLaboklab(21.2% 0.0606 -0.0586)
OKLCHoklch(21.2% 0.084 316)
XYZxyz(1.4883, 0.8136, 3.0956)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270732 #123207
analogous
#110732 #270732 #320727
triadic
#270732 #322707 #073227
tetradic
#270732 #321107 #123207 #072732
square
#270732 #321107 #123207 #072732
split-complementary
#270732 #273207 #073211
monochromatic
#15041B #15041B #270732 #510F68 #7B169D

Accessibility & contrast

On white

18.06
#270732 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#270732 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270732
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270732#FFFFFF#000000##FFFFFF
##2707321.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#071731
Tritanopia (blue-blind)
#26101B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270732;
/* rgb */ color: rgb(39, 7, 50);
/* oklch */ color: oklch(21.2% 0.084 316.0);
Tailwind
colors: {
  custom: {
    50: '#634a6a',
    500: '#270732',
    950: '#000000',
  },
}
SCSS
$custom: #270732;
$custom-light: #634a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#270732",
  "rgb": {
    "r": 39,
    "g": 7,
    "b": 50
  },
  "hsl": {
    "h": 284.651,
    "s": 75.439,
    "l": 11.176
  },
  "oklch": {
    "l": 0.21198,
    "c": 0.08433,
    "h": 316
  },
  "luminance": 0.00814
}

Semantic roles & 50–950 ramp

primary
#270732
secondary
#377223
accent
#F23666
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #270732

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

Preview Lab → · Contrast checker → · Palette generator →

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