#270546#270546

#270546 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.110 H 301.5°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#270546
RGBrgb(39, 5, 70)
HSLhsl(271, 87%, 15%)
HSVhsv(271, 93%, 27%)
CMYKcmyk(44.3%, 92.9%, 0%, 72.5%)
CIE-LABlab(8.84, 30.88, -32.76)
CIE-LCHlch(8.84, 45.01, 313.31°)
OKLaboklab(22.85% 0.0575 -0.0937)
OKLCHoklch(22.85% 0.11 301.5)
XYZxyz(1.9962, 0.9821, 5.8776)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270546 #244605
analogous
#070546 #270546 #460545
triadic
#270546 #462705 #054627
tetradic
#270546 #460705 #244605 #054546
square
#270546 #460705 #244605 #054546
split-complementary
#270546 #454605 #054607
monochromatic
#10021D #10021D #270546 #47097F #670DB8

Accessibility & contrast

On white

17.55
#270546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#270546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270546
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270546#FFFFFF#000000##FFFFFF
##2705461.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001945
Tritanopia (blue-blind)
#201826
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270546;
/* rgb */ color: rgb(39, 5, 70);
/* oklch */ color: oklch(22.8% 0.110 301.5);
Tailwind
colors: {
  custom: {
    50: '#664a7a',
    500: '#270546',
    950: '#000000',
  },
}
SCSS
$custom: #270546;
$custom-light: #664a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#270546",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 271.385,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22845,
    "c": 0.10988,
    "h": 301.5
  },
  "luminance": 0.00982
}

Semantic roles & 50–950 ramp

primary
#270546
secondary
#518621
accent
#FD2B8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270546

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

Preview Lab → · Contrast checker → · Palette generator →

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