#28116A#28116A

#28116A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.141 H 284.8°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#28116A
RGBrgb(40, 17, 106)
HSLhsl(256, 72%, 24%)
HSVhsv(256, 84%, 42%)
CMYKcmyk(62.3%, 84%, 0%, 58.4%)
CIE-LABlab(14.91, 35.85, -47.18)
CIE-LCHlch(14.91, 59.25, 307.23°)
OKLaboklab(28.27% 0.0359 -0.1359)
OKLCHoklch(28.27% 0.141 284.8)
XYZxyz(3.6762, 1.8924, 13.8044)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28116A #536A11
analogous
#11266A #28116A #55116A
triadic
#28116A #6A2811 #116A28
tetradic
#28116A #6A1126 #536A11 #116A55
square
#28116A #6A1126 #536A11 #116A55
split-complementary
#28116A #6A5511 #266A11
monochromatic
#0A041A #140935 #28116A #3C199F #5022D3

Accessibility & contrast

On white

15.23
#28116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#28116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28116A
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28116A#FFFFFF#000000##FFFFFF
##28116A1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#012C3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28116a;
/* rgb */ color: rgb(40, 17, 106);
/* oklch */ color: oklch(28.3% 0.141 284.8);
Tailwind
colors: {
  custom: {
    50: '#6c5396',
    500: '#28116a',
    950: '#000000',
  },
}
SCSS
$custom: #28116a;
$custom-light: #6c5396;
$custom-dark: #000000;
JSON
{
  "hex": "#28116a",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 255.506,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28272,
    "c": 0.14062,
    "h": 284.8
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#28116A
secondary
#86A235
accent
#EF39C0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #28116A

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

Preview Lab → · Contrast checker → · Palette generator →

#28116A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva