#28125C#28125C

#28125C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.122 H 289.0°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#28125C
RGBrgb(40, 18, 92)
HSLhsl(258, 67%, 22%)
HSVhsv(258, 80%, 36%)
CMYKcmyk(56.5%, 80.4%, 0%, 63.9%)
CIE-LABlab(13.57, 30.96, -40.10)
CIE-LCHlch(13.57, 50.66, 307.67°)
OKLaboklab(26.88% 0.0397 -0.1153)
OKLCHoklch(26.88% 0.122 289)
XYZxyz(3.0226, 1.6563, 10.2836)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28125C #465C12
analogous
#12215C #28125C #4D125C
triadic
#28125C #5C2812 #125C28
tetradic
#28125C #5C1221 #465C12 #125C4D
square
#28125C #5C1221 #465C12 #125C4D
split-complementary
#28125C #5C4D12 #215C12
monochromatic
#0B051A #120829 #28125C #3E1C8F #5526C2

Accessibility & contrast

On white

15.78
#28125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28125C
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28125C#FFFFFF#000000##FFFFFF
##28125C1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#142636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28125c;
/* rgb */ color: rgb(40, 18, 92);
/* oklch */ color: oklch(26.9% 0.122 289.0);
Tailwind
colors: {
  custom: {
    50: '#69528b',
    500: '#28125c',
    950: '#000000',
  },
}
SCSS
$custom: #28125c;
$custom-light: #69528b;
$custom-dark: #000000;
JSON
{
  "hex": "#28125c",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 257.838,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26876,
    "c": 0.12192,
    "h": 289
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#28125C
secondary
#789435
accent
#EA3EB7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28125C

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

Preview Lab → · Contrast checker → · Palette generator →

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