#271152#271152

#271152 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.110 H 292.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#271152
RGBrgb(39, 17, 82)
HSLhsl(260, 66%, 19%)
HSVhsv(260, 79%, 32%)
CMYKcmyk(52.4%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.23, 28.19, -35.53)
CIE-LCHlch(12.23, 45.35, 308.43°)
OKLaboklab(25.59% 0.0417 -0.1019)
OKLCHoklch(25.59% 0.11 292.3)
XYZxyz(2.5597, 1.4413, 8.1243)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271152 #3C5211
analogous
#111B52 #271152 #481152
triadic
#271152 #522711 #115227
tetradic
#271152 #52111B #3C5211 #115248
square
#271152 #52111B #3C5211 #115248
split-complementary
#271152 #524811 #1B5211
monochromatic
#0C0519 #0F061F #271152 #3F1C85 #5726B7

Accessibility & contrast

On white

16.30
#271152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271152
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271152#FFFFFF#000000##FFFFFF
##2711521.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271152;
/* rgb */ color: rgb(39, 17, 82);
/* oklch */ color: oklch(25.6% 0.110 292.3);
Tailwind
colors: {
  custom: {
    50: '#665183',
    500: '#271152',
    950: '#000000',
  },
}
SCSS
$custom: #271152;
$custom-light: #665183;
$custom-dark: #000000;
JSON
{
  "hex": "#271152",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 260.308,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25591,
    "c": 0.11011,
    "h": 292.3
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#271152
secondary
#6E8B34
accent
#E93FAF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271152

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

Preview Lab → · Contrast checker → · Palette generator →

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