#28125D#28125D

#28125D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.123 H 288.6°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#28125D
RGBrgb(40, 18, 93)
HSLhsl(258, 68%, 22%)
HSVhsv(258, 81%, 36%)
CMYKcmyk(57%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.67, 31.27, -40.60)
CIE-LCHlch(13.67, 51.25, 307.61°)
OKLaboklab(26.98% 0.0394 -0.1167)
OKLCHoklch(26.98% 0.123 288.6)
XYZxyz(3.0666, 1.6739, 10.5153)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28125D #475D12
analogous
#12225D #28125D #4E125D
triadic
#28125D #5D2812 #125D28
tetradic
#28125D #5D1222 #475D12 #125D4E
square
#28125D #5D1222 #475D12 #125D4E
split-complementary
#28125D #5D4E12 #225D12
monochromatic
#0B051A #12082A #28125D #3E1C90 #5426C4

Accessibility & contrast

On white

15.73
#28125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28125D
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28125D#FFFFFF#000000##FFFFFF
##28125D1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#132737
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28125d;
/* rgb */ color: rgb(40, 18, 93);
/* oklch */ color: oklch(27.0% 0.123 288.6);
Tailwind
colors: {
  custom: {
    50: '#69528c',
    500: '#28125d',
    950: '#000000',
  },
}
SCSS
$custom: #28125d;
$custom-light: #69528c;
$custom-dark: #000000;
JSON
{
  "hex": "#28125d",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 257.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26981,
    "c": 0.12321,
    "h": 288.6
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#28125D
secondary
#799535
accent
#EA3DB8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28125D

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

Preview Lab → · Contrast checker → · Palette generator →

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