#28125A#28125A

#28125A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.119 H 289.7°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#28125A
RGBrgb(40, 18, 90)
HSLhsl(258, 67%, 21%)
HSVhsv(258, 80%, 35%)
CMYKcmyk(55.6%, 80%, 0%, 64.7%)
CIE-LABlab(13.36, 30.33, -39.09)
CIE-LCHlch(13.36, 49.48, 307.80°)
OKLaboklab(26.67% 0.0403 -0.1123)
OKLCHoklch(26.67% 0.119 289.7)
XYZxyz(2.9363, 1.6218, 9.8292)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28125A #445A12
analogous
#12205A #28125A #4C125A
triadic
#28125A #5A2812 #125A28
tetradic
#28125A #5A1220 #445A12 #125A4C
square
#28125A #5A1220 #445A12 #125A4C
split-complementary
#28125A #5A4C12 #205A12
monochromatic
#0B051A #110827 #28125A #3F1C8D #5526C0

Accessibility & contrast

On white

15.86
#28125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28125A
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28125A#FFFFFF#000000##FFFFFF
##28125A1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#162635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28125a;
/* rgb */ color: rgb(40, 18, 90);
/* oklch */ color: oklch(26.7% 0.119 289.7);
Tailwind
colors: {
  custom: {
    50: '#685289',
    500: '#28125a',
    950: '#000000',
  },
}
SCSS
$custom: #28125a;
$custom-light: #685289;
$custom-dark: #000000;
JSON
{
  "hex": "#28125a",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 258.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26667,
    "c": 0.11933,
    "h": 289.7
  },
  "luminance": 0.01622
}

Semantic roles & 50–950 ramp

primary
#28125A
secondary
#769335
accent
#EA3EB5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28125A

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

Preview Lab → · Contrast checker → · Palette generator →

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