#281171#281171

#281171 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.1% C 0.149 H 283.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#281171
RGBrgb(40, 17, 113)
HSLhsl(254, 74%, 25%)
HSVhsv(254, 85%, 44%)
CMYKcmyk(64.6%, 85%, 0%, 55.7%)
CIE-LABlab(15.72, 38.01, -50.42)
CIE-LCHlch(15.72, 63.14, 307.01°)
OKLaboklab(29.07% 0.0335 -0.1454)
OKLCHoklch(29.07% 0.149 283)
XYZxyz(4.0552, 2.0440, 15.8004)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281171 #5A7111
analogous
#112A71 #281171 #581171
triadic
#281171 #712811 #117128
tetradic
#281171 #71112A #5A7111 #117158
square
#281171 #71112A #5A7111 #117158
split-complementary
#281171 #715811 #2A7111
monochromatic
#09041B #15093C #281171 #3B19A6 #4E21DB

Accessibility & contrast

On white

14.91
#281171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#281171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281171
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281171#FFFFFF#000000##FFFFFF
##2811711.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281171;
/* rgb */ color: rgb(40, 17, 113);
/* oklch */ color: oklch(29.1% 0.149 283.0);
Tailwind
colors: {
  custom: {
    50: '#6d539b',
    500: '#281171',
    950: '#000000',
  },
}
SCSS
$custom: #281171;
$custom-light: #6d539b;
$custom-dark: #000000;
JSON
{
  "hex": "#281171",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 254.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29068,
    "c": 0.1492,
    "h": 283
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#281171
secondary
#8DA836
accent
#F137C4
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281171

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

Preview Lab → · Contrast checker → · Palette generator →

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