#271272#271272

#271272 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.150 H 281.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#271272
RGBrgb(39, 18, 114)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 84%, 45%)
CMYKcmyk(65.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.89, 37.73, -50.77)
CIE-LCHlch(15.89, 63.26, 306.61°)
OKLaboklab(29.2% 0.0309 -0.1465)
OKLCHoklch(29.2% 0.15 281.9)
XYZxyz(4.0893, 2.0786, 16.1020)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271272 #5D7212
analogous
#122D72 #271272 #571272
triadic
#271272 #722712 #127227
tetradic
#271272 #72122D #5D7212 #127257
square
#271272 #72122D #5D7212 #127257
split-complementary
#271272 #725712 #2D7212
monochromatic
#09041A #150A3D #271272 #391AA7 #4B23DC

Accessibility & contrast

On white

14.83
#271272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271272
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271272#FFFFFF#000000##FFFFFF
##2712721.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271272;
/* rgb */ color: rgb(39, 18, 114);
/* oklch */ color: oklch(29.2% 0.150 281.9);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#271272',
    950: '#000000',
  },
}
SCSS
$custom: #271272;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#271272",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 253.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.292,
    "c": 0.1497,
    "h": 281.9
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#271272
secondary
#90A937
accent
#EF38C7
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271272

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

Preview Lab → · Contrast checker → · Palette generator →

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