#28176A#28176A

#28176A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.134 H 283.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#28176A
RGBrgb(40, 23, 106)
HSLhsl(252, 64%, 25%)
HSVhsv(252, 78%, 42%)
CMYKcmyk(62.3%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.03, 32.66, -45.34)
CIE-LCHlch(16.03, 55.88, 305.77°)
OKLaboklab(29.05% 0.0316 -0.1307)
OKLCHoklch(29.05% 0.134 283.6)
XYZxyz(3.7822, 2.1043, 13.8397)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28176A #596A17
analogous
#17306A #28176A #51176A
triadic
#28176A #6A2817 #176A28
tetradic
#28176A #6A1730 #596A17 #176A51
square
#28176A #6A1730 #596A17 #176A51
split-complementary
#28176A #6A5117 #306A17
monochromatic
#090519 #150C38 #28176A #3B229C #4E2DCF

Accessibility & contrast

On white

14.78
#28176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#28176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28176A
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28176A#FFFFFF#000000##FFFFFF
##28176A1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#012E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28176a;
/* rgb */ color: rgb(40, 23, 106);
/* oklch */ color: oklch(29.1% 0.134 283.6);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#28176a',
    950: '#000000',
  },
}
SCSS
$custom: #28176a;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#28176a",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 252.289,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29051,
    "c": 0.13442,
    "h": 283.6
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#28176A
secondary
#8CA03D
accent
#E740C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28176A

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

Preview Lab → · Contrast checker → · Palette generator →

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