#271052#271052

#271052 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.111 H 292.6°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#271052
RGBrgb(39, 16, 82)
HSLhsl(261, 67%, 19%)
HSVhsv(261, 80%, 32%)
CMYKcmyk(52.4%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.03, 28.75, -35.85)
CIE-LCHlch(12.03, 45.96, 308.73°)
OKLaboklab(25.45% 0.0427 -0.1028)
OKLCHoklch(25.45% 0.111 292.6)
XYZxyz(2.5446, 1.4110, 8.1193)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271052 #3B5210
analogous
#101A52 #271052 #481052
triadic
#271052 #522710 #105227
tetradic
#271052 #52101A #3B5210 #105248
square
#271052 #52101A #3B5210 #105248
split-complementary
#271052 #524810 #1A5210
monochromatic
#0C051A #0F061F #271052 #3F1A85 #5824B8

Accessibility & contrast

On white

16.38
#271052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271052
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271052#FFFFFF#000000##FFFFFF
##2710521.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#192230
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271052;
/* rgb */ color: rgb(39, 16, 82);
/* oklch */ color: oklch(25.4% 0.111 292.6);
Tailwind
colors: {
  custom: {
    50: '#675183',
    500: '#271052',
    950: '#000000',
  },
}
SCSS
$custom: #271052;
$custom-light: #675183;
$custom-dark: #000000;
JSON
{
  "hex": "#271052",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 260.909,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2545,
    "c": 0.11137,
    "h": 292.6
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#271052
secondary
#6C8C32
accent
#EA3EAE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271052

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

Preview Lab → · Contrast checker → · Palette generator →

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