#28127D#28127D

#28127D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 280.1°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#28127D
RGBrgb(40, 18, 125)
HSLhsl(252, 75%, 28%)
HSVhsv(252, 86%, 49%)
CMYKcmyk(68%, 85.6%, 0%, 51%)
CIE-LABlab(17.29, 41.21, -55.53)
CIE-LCHlch(17.29, 69.15, 306.58°)
OKLaboklab(30.57% 0.0287 -0.1603)
OKLCHoklch(30.57% 0.163 280.1)
XYZxyz(4.7919, 2.3640, 19.6018)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28127D #677D12
analogous
#12327D #28127D #5D127D
triadic
#28127D #7D2812 #127D28
tetradic
#28127D #7D1232 #677D12 #127D5D
square
#28127D #7D1232 #677D12 #127D5D
split-complementary
#28127D #7D5D12 #327D12
monochromatic
#09041B #170A48 #28127D #391AB2 #4F29E0

Accessibility & contrast

On white

14.26
#28127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28127D
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28127D#FFFFFF#000000##FFFFFF
##28127D1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28127d;
/* rgb */ color: rgb(40, 18, 125);
/* oklch */ color: oklch(30.6% 0.163 280.1);
Tailwind
colors: {
  custom: {
    50: '#7055a4',
    500: '#28127d',
    950: '#000000',
  },
}
SCSS
$custom: #28127d;
$custom-light: #7055a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28127d",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 252.336,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30571,
    "c": 0.16284,
    "h": 280.1
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#28127D
secondary
#9AB338
accent
#F136CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28127D

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

Preview Lab → · Contrast checker → · Palette generator →

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