#28116D#28116D

#28116D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.144 H 284.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#28116D
RGBrgb(40, 17, 109)
HSLhsl(255, 73%, 25%)
HSVhsv(255, 84%, 43%)
CMYKcmyk(63.3%, 84.4%, 0%, 57.3%)
CIE-LABlab(15.25, 36.78, -48.58)
CIE-LCHlch(15.25, 60.93, 307.13°)
OKLaboklab(28.61% 0.0349 -0.14)
OKLCHoklch(28.61% 0.144 284)
XYZxyz(3.8350, 1.9559, 14.6405)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28116D #566D11
analogous
#11286D #28116D #56116D
triadic
#28116D #6D2811 #116D28
tetradic
#28116D #6D1128 #566D11 #116D56
square
#28116D #6D1128 #566D11 #116D56
split-complementary
#28116D #6D5611 #286D11
monochromatic
#0A041A #150938 #28116D #3B19A2 #4F22D7

Accessibility & contrast

On white

15.09
#28116D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#28116D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28116D
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28116D#FFFFFF#000000##FFFFFF
##28116D1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28116d;
/* rgb */ color: rgb(40, 17, 109);
/* oklch */ color: oklch(28.6% 0.144 284.0);
Tailwind
colors: {
  custom: {
    50: '#6c5398',
    500: '#28116d',
    950: '#000000',
  },
}
SCSS
$custom: #28116d;
$custom-light: #6c5398;
$custom-dark: #000000;
JSON
{
  "hex": "#28116d",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 109
  },
  "hsl": {
    "h": 255,
    "s": 73.016,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28611,
    "c": 0.14431,
    "h": 284
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#28116D
secondary
#89A535
accent
#F038C2
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28116D

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

Preview Lab → · Contrast checker → · Palette generator →

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