#270538#270538

#270538 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.094 H 311.3°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#270538
RGBrgb(39, 5, 56)
HSLhsl(280, 84%, 12%)
HSVhsv(280, 91%, 22%)
CMYKcmyk(30.4%, 91.1%, 0%, 78%)
CIE-LABlab(7.46, 27.16, -25.01)
CIE-LCHlch(7.46, 36.92, 317.37°)
OKLaboklab(21.44% 0.0623 -0.071)
OKLCHoklch(21.44% 0.094 311.3)
XYZxyz(1.6046, 0.8254, 3.8154)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#270538 #163805
analogous
#0E0538 #270538 #380530
triadic
#270538 #382705 #053827
tetradic
#270538 #380E05 #163805 #053038
square
#270538 #380E05 #163805 #053038
split-complementary
#270538 #303805 #05380E
monochromatic
#14031C #14031C #270538 #4E0A70 #750FA8

Accessibility & contrast

On white

18.03
#270538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#270538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #270538
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##270538#FFFFFF#000000##FFFFFF
##2705381.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#25111E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #270538;
/* rgb */ color: rgb(39, 5, 56);
/* oklch */ color: oklch(21.4% 0.094 311.3);
Tailwind
colors: {
  custom: {
    50: '#64496f',
    500: '#270538',
    950: '#000000',
  },
}
SCSS
$custom: #270538;
$custom-light: #64496f;
$custom-dark: #000000;
JSON
{
  "hex": "#270538",
  "rgb": {
    "r": 39,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 280,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21443,
    "c": 0.09444,
    "h": 311.3
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#270538
secondary
#3D7920
accent
#FA2E72
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #270538

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

Preview Lab → · Contrast checker → · Palette generator →

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