#281281#281281

#281281 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.168 H 279.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#281281
RGBrgb(40, 18, 129)
HSLhsl(252, 76%, 29%)
HSVhsv(252, 86%, 51%)
CMYKcmyk(69%, 86%, 0%, 49.4%)
CIE-LABlab(17.77, 42.42, -57.28)
CIE-LCHlch(17.77, 71.27, 306.53°)
OKLaboklab(31.04% 0.0273 -0.1654)
OKLCHoklch(31.04% 0.168 279.4)
XYZxyz(5.0526, 2.4683, 20.9748)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281281 #6B8112
analogous
#123481 #281281 #601281
triadic
#281281 #812812 #128128
tetradic
#281281 #811234 #6B8112 #128160
square
#281281 #811234 #6B8112 #128160
split-complementary
#281281 #816012 #348112
monochromatic
#08041B #170B4B #281281 #3919B7 #502CE2

Accessibility & contrast

On white

14.06
#281281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281281
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281281#FFFFFF#000000##FFFFFF
##2812811.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281281;
/* rgb */ color: rgb(40, 18, 129);
/* oklch */ color: oklch(31.0% 0.168 279.4);
Tailwind
colors: {
  custom: {
    50: '#7155a7',
    500: '#281281',
    950: '#000000',
  },
}
SCSS
$custom: #281281;
$custom-light: #7155a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281281",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 251.892,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31043,
    "c": 0.1676,
    "h": 279.4
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#281281
secondary
#9DB738
accent
#F236CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281281

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

Preview Lab → · Contrast checker → · Palette generator →

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