#281271#281271

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

Color values

HEX#281271
RGBrgb(40, 18, 113)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 44%)
CMYKcmyk(64.6%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.88, 37.53, -50.15)
CIE-LCHlch(15.88, 62.63, 306.81°)
OKLaboklab(29.18% 0.0329 -0.1446)
OKLCHoklch(29.18% 0.148 282.8)
XYZxyz(4.0711, 2.0757, 15.8057)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281271 #5B7112
analogous
#122B71 #281271 #571271
triadic
#281271 #712812 #127128
tetradic
#281271 #71122B #5B7112 #127157
square
#281271 #71122B #5B7112 #127157
split-complementary
#281271 #715712 #2B7112
monochromatic
#09041A #150A3C #281271 #3B1AA6 #4D23DB

Accessibility & contrast

On white

14.84
#281271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281271
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281271#FFFFFF#000000##FFFFFF
##2812711.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281271;
/* rgb */ color: rgb(40, 18, 113);
/* oklch */ color: oklch(29.2% 0.148 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d549b',
    500: '#281271',
    950: '#000000',
  },
}
SCSS
$custom: #281271;
$custom-light: #6d549b;
$custom-dark: #000000;
JSON
{
  "hex": "#281271",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 253.895,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2918,
    "c": 0.14832,
    "h": 282.8
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#281271
secondary
#8EA837
accent
#EF39C5
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281271

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

Preview Lab → · Contrast checker → · Palette generator →

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