#281172#281172

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

Color values

HEX#281172
RGBrgb(40, 17, 114)
HSLhsl(254, 74%, 26%)
HSVhsv(254, 85%, 45%)
CMYKcmyk(64.9%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.83, 38.31, -50.87)
CIE-LCHlch(15.83, 63.68, 306.98°)
OKLaboklab(29.18% 0.0331 -0.1467)
OKLCHoklch(29.18% 0.15 282.7)
XYZxyz(4.1118, 2.0666, 16.0985)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281172 #5B7211
analogous
#112A72 #281172 #581172
triadic
#281172 #722811 #117228
tetradic
#281172 #72112A #5B7211 #117258
square
#281172 #72112A #5B7211 #117258
split-complementary
#281172 #725811 #2A7211
monochromatic
#09041B #15093D #281172 #3B19A7 #4D21DD

Accessibility & contrast

On white

14.86
#281172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281172
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281172#FFFFFF#000000##FFFFFF
##2811721.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281172;
/* rgb */ color: rgb(40, 17, 114);
/* oklch */ color: oklch(29.2% 0.150 282.7);
Tailwind
colors: {
  custom: {
    50: '#6d539c',
    500: '#281172',
    950: '#000000',
  },
}
SCSS
$custom: #281172;
$custom-light: #6d539c;
$custom-dark: #000000;
JSON
{
  "hex": "#281172",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 254.227,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29183,
    "c": 0.15041,
    "h": 282.7
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#281172
secondary
#8EA936
accent
#F137C5
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281172

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

Preview Lab → · Contrast checker → · Palette generator →

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