#281280#281280

#281280 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.166 H 279.6°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#281280
RGBrgb(40, 18, 128)
HSLhsl(252, 75%, 29%)
HSVhsv(252, 86%, 50%)
CMYKcmyk(68.8%, 85.9%, 0%, 49.8%)
CIE-LABlab(17.65, 42.12, -56.84)
CIE-LCHlch(17.65, 70.75, 306.54°)
OKLaboklab(30.92% 0.0276 -0.1641)
OKLCHoklch(30.92% 0.166 279.6)
XYZxyz(4.9864, 2.4418, 20.6264)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281280 #6A8012
analogous
#123380 #281280 #5F1280
triadic
#281280 #802812 #128028
tetradic
#281280 #801233 #6A8012 #12805F
square
#281280 #801233 #6A8012 #12805F
split-complementary
#281280 #805F12 #338012
monochromatic
#08041B #170A4A #281280 #391AB6 #502BE1

Accessibility & contrast

On white

14.11
#281280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281280
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281280#FFFFFF#000000##FFFFFF
##2812801.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281280;
/* rgb */ color: rgb(40, 18, 128);
/* oklch */ color: oklch(30.9% 0.166 279.6);
Tailwind
colors: {
  custom: {
    50: '#7055a6',
    500: '#281280',
    950: '#000000',
  },
}
SCSS
$custom: #281280;
$custom-light: #7055a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281280",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 252,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30924,
    "c": 0.16642,
    "h": 279.6
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#281280
secondary
#9DB638
accent
#F236CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #281280

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

Preview Lab → · Contrast checker → · Palette generator →

#281280 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva