#270542#270542

#270542 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.105 H 304.0°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#270542
RGBrgb(39, 5, 66)
HSLhsl(273, 86%, 14%)
HSVhsv(273, 92%, 26%)
CMYKcmyk(40.9%, 92.4%, 0%, 74.1%)
CIE-LABlab(8.42, 29.81, -30.62)
CIE-LCHlch(8.42, 42.73, 314.24°)
OKLaboklab(22.43% 0.059 -0.0874)
OKLCHoklch(22.43% 0.105 304)
XYZxyz(1.8741, 0.9332, 5.2346)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270542 #204205
analogous
#090542 #270542 #42053F
triadic
#270542 #422705 #054227
tetradic
#270542 #420905 #204205 #053F42
square
#270542 #420905 #204205 #053F42
split-complementary
#270542 #3F4205 #054209
monochromatic
#11021C #11021C #270542 #49097B #6A0EB4

Accessibility & contrast

On white

17.70
#270542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#270542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270542
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270542#FFFFFF#000000##FFFFFF
##2705421.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#221624
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #270542;
/* rgb */ color: rgb(39, 5, 66);
/* oklch */ color: oklch(22.4% 0.105 304.0);
Tailwind
colors: {
  custom: {
    50: '#654a77',
    500: '#270542',
    950: '#000000',
  },
}
SCSS
$custom: #270542;
$custom-light: #654a77;
$custom-dark: #000000;
JSON
{
  "hex": "#270542",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 273.443,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22428,
    "c": 0.10544,
    "h": 304
  },
  "luminance": 0.00933
}

Semantic roles & 50–950 ramp

primary
#270542
secondary
#4C8220
accent
#FC2C88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #270542

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

Preview Lab → · Contrast checker → · Palette generator →

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