#28117F#28117F

#28117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.166 H 279.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#28117F
RGBrgb(40, 17, 127)
HSLhsl(253, 76%, 28%)
HSVhsv(253, 87%, 50%)
CMYKcmyk(68.5%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.39, 42.25, -56.65)
CIE-LCHlch(17.39, 70.67, 306.72°)
OKLaboklab(30.71% 0.0284 -0.1635)
OKLCHoklch(30.71% 0.166 279.9)
XYZxyz(4.9051, 2.3839, 20.2762)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28117F #687F11
analogous
#11317F #28117F #5F117F
triadic
#28117F #7F2811 #117F28
tetradic
#28117F #7F1131 #687F11 #117F5F
square
#28117F #7F1131 #687F11 #117F5F
split-complementary
#28117F #7F5F11 #317F11
monochromatic
#08041B #170A49 #28117F #3918B5 #4F28E2

Accessibility & contrast

On white

14.22
#28117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#28117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28117F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28117F#FFFFFF#000000##FFFFFF
##28117F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28117f;
/* rgb */ color: rgb(40, 17, 127);
/* oklch */ color: oklch(30.7% 0.166 279.9);
Tailwind
colors: {
  custom: {
    50: '#7055a5',
    500: '#28117f',
    950: '#000000',
  },
}
SCSS
$custom: #28117f;
$custom-light: #7055a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28117f",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 252.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30705,
    "c": 0.16598,
    "h": 279.9
  },
  "luminance": 0.02384
}

Semantic roles & 50–950 ramp

primary
#28117F
secondary
#9BB537
accent
#F335CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28117F

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

Preview Lab → · Contrast checker → · Palette generator →

#28117F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva