#28105C#28105C

#28105C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.124 H 289.5°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#28105C
RGBrgb(40, 16, 92)
HSLhsl(259, 70%, 21%)
HSVhsv(259, 83%, 36%)
CMYKcmyk(56.5%, 82.6%, 0%, 63.9%)
CIE-LABlab(13.20, 32.02, -40.71)
CIE-LCHlch(13.20, 51.80, 308.19°)
OKLaboklab(26.61% 0.0414 -0.117)
OKLCHoklch(26.61% 0.124 289.5)
XYZxyz(2.9916, 1.5943, 10.2732)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28105C #445C10
analogous
#101E5C #28105C #4E105C
triadic
#28105C #5C2810 #105C28
tetradic
#28105C #5C101E #445C10 #105C4E
square
#28105C #5C101E #445C10 #105C4E
split-complementary
#28105C #5C4E10 #1E5C10
monochromatic
#0B051A #110728 #28105C #3F1990 #5522C4

Accessibility & contrast

On white

15.92
#28105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28105C
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28105C#FFFFFF#000000##FFFFFF
##28105C1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#142635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28105c;
/* rgb */ color: rgb(40, 16, 92);
/* oklch */ color: oklch(26.6% 0.124 289.5);
Tailwind
colors: {
  custom: {
    50: '#69518b',
    500: '#28105c',
    950: '#000000',
  },
}
SCSS
$custom: #28105c;
$custom-light: #69518b;
$custom-dark: #000000;
JSON
{
  "hex": "#28105c",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 258.947,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26614,
    "c": 0.12416,
    "h": 289.5
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#28105C
secondary
#769533
accent
#ED3BB5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28105C

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

Preview Lab → · Contrast checker → · Palette generator →

#28105C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva