#281276#281276

#281276 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.154 H 281.6°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#281276
RGBrgb(40, 18, 118)
HSLhsl(253, 74%, 27%)
HSVhsv(253, 85%, 46%)
CMYKcmyk(66.1%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.46, 39.07, -52.42)
CIE-LCHlch(16.46, 65.38, 306.70°)
OKLaboklab(29.75% 0.0312 -0.1512)
OKLCHoklch(29.75% 0.154 281.6)
XYZxyz(4.3604, 2.1914, 17.3292)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281276 #607612
analogous
#122E76 #281276 #5A1276
triadic
#281276 #762812 #127628
tetradic
#281276 #76122E #607612 #12765A
square
#281276 #76122E #607612 #12765A
split-complementary
#281276 #765A12 #2E7612
monochromatic
#09041B #160A41 #281276 #3A1AAB #4D25DE

Accessibility & contrast

On white

14.60
#281276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281276
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281276#FFFFFF#000000##FFFFFF
##2812761.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281276;
/* rgb */ color: rgb(40, 18, 118);
/* oklch */ color: oklch(29.8% 0.154 281.6);
Tailwind
colors: {
  custom: {
    50: '#6e549f',
    500: '#281276',
    950: '#000000',
  },
}
SCSS
$custom: #281276;
$custom-light: #6e549f;
$custom-dark: #000000;
JSON
{
  "hex": "#281276",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 253.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29754,
    "c": 0.15441,
    "h": 281.6
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#281276
secondary
#93AD37
accent
#F038C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #281276

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

Preview Lab → · Contrast checker → · Palette generator →

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