#270547#270547

#270547 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.111 H 300.9°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#270547
RGBrgb(39, 5, 71)
HSLhsl(271, 87%, 15%)
HSVhsv(271, 93%, 28%)
CMYKcmyk(45.1%, 93%, 0%, 72.2%)
CIE-LABlab(8.95, 31.15, -33.28)
CIE-LCHlch(8.95, 45.58, 313.10°)
OKLaboklab(22.95% 0.057 -0.0952)
OKLCHoklch(22.95% 0.111 300.9)
XYZxyz(2.0280, 0.9948, 6.0452)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270547 #254705
analogous
#060547 #270547 #470546
triadic
#270547 #472705 #054727
tetradic
#270547 #470605 #254705 #054647
square
#270547 #470605 #254705 #054647
split-complementary
#270547 #464705 #054706
monochromatic
#10021D #10021D #270547 #460980 #660DB9

Accessibility & contrast

On white

17.51
#270547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #270547
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270547#FFFFFF#000000##FFFFFF
##2705471.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001946
Tritanopia (blue-blind)
#201827
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #270547;
/* rgb */ color: rgb(39, 5, 71);
/* oklch */ color: oklch(23.0% 0.111 300.9);
Tailwind
colors: {
  custom: {
    50: '#664a7b',
    500: '#270547',
    950: '#000000',
  },
}
SCSS
$custom: #270547;
$custom-light: #664a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#270547",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 71
  },
  "hsl": {
    "h": 270.909,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22952,
    "c": 0.11098,
    "h": 300.9
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#270547
secondary
#528721
accent
#FD2B91
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #270547

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

Preview Lab → · Contrast checker → · Palette generator →

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