#28156A#28156A

#28156A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.137 H 284.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#28156A
RGBrgb(40, 21, 106)
HSLhsl(253, 67%, 25%)
HSVhsv(253, 80%, 42%)
CMYKcmyk(62.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(15.63, 33.78, -45.99)
CIE-LCHlch(15.63, 57.06, 306.30°)
OKLaboklab(28.78% 0.0331 -0.1325)
OKLCHoklch(28.78% 0.137 284)
XYZxyz(3.7440, 2.0278, 13.8270)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28156A #576A15
analogous
#152C6A #28156A #53156A
triadic
#28156A #6A2815 #156A28
tetradic
#28156A #6A152C #576A15 #156A53
square
#28156A #6A152C #576A15 #156A53
split-complementary
#28156A #6A5315 #2C6A15
monochromatic
#0A051A #150B37 #28156A #3B1F9D #4F29D0

Accessibility & contrast

On white

14.94
#28156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28156A
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28156A#FFFFFF#000000##FFFFFF
##28156A1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#012D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28156a;
/* rgb */ color: rgb(40, 21, 106);
/* oklch */ color: oklch(28.8% 0.137 284.0);
Tailwind
colors: {
  custom: {
    50: '#6b5596',
    500: '#28156a',
    950: '#000000',
  },
}
SCSS
$custom: #28156a;
$custom-light: #6b5596;
$custom-dark: #000000;
JSON
{
  "hex": "#28156a",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 253.412,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28775,
    "c": 0.13661,
    "h": 284
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#28156A
secondary
#8AA13A
accent
#EA3EC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28156A

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

Preview Lab → · Contrast checker → · Palette generator →

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