#28196A#28196A

#28196A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.132 H 283.1°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#28196A
RGBrgb(40, 25, 106)
HSLhsl(251, 62%, 26%)
HSVhsv(251, 76%, 42%)
CMYKcmyk(62.3%, 76.4%, 0%, 58.4%)
CIE-LABlab(16.44, 31.50, -44.66)
CIE-LCHlch(16.44, 54.66, 305.19°)
OKLaboklab(29.34% 0.03 -0.1287)
OKLCHoklch(29.34% 0.132 283.1)
XYZxyz(3.8234, 2.1867, 13.8535)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28196A #5B6A19
analogous
#19326A #28196A #50196A
triadic
#28196A #6A2819 #196A28
tetradic
#28196A #6A1932 #5B6A19 #196A50
square
#28196A #6A1932 #5B6A19 #196A50
split-complementary
#28196A #6A5019 #326A19
monochromatic
#090619 #150D38 #28196A #3B259C #4D30CD

Accessibility & contrast

On white

14.61
#28196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#28196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28196A
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28196A#FFFFFF#000000##FFFFFF
##28196A1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28196a;
/* rgb */ color: rgb(40, 25, 106);
/* oklch */ color: oklch(29.3% 0.132 283.1);
Tailwind
colors: {
  custom: {
    50: '#6b5795',
    500: '#28196a',
    950: '#000000',
  },
}
SCSS
$custom: #28196a;
$custom-light: #6b5795;
$custom-dark: #000000;
JSON
{
  "hex": "#28196a",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 251.111,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29343,
    "c": 0.13213,
    "h": 283.1
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#28196A
secondary
#8EA03F
accent
#E543C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28196A

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

Preview Lab → · Contrast checker → · Palette generator →

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