#281272#281272

#281272 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.150 H 282.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#281272
RGBrgb(40, 18, 114)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(64.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.99, 37.84, -50.60)
CIE-LCHlch(15.99, 63.19, 306.79°)
OKLaboklab(29.29% 0.0325 -0.146)
OKLCHoklch(29.29% 0.15 282.6)
XYZxyz(4.1277, 2.0983, 16.1038)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281272 #5C7212
analogous
#122C72 #281272 #581272
triadic
#281272 #722812 #127228
tetradic
#281272 #72122C #5C7212 #127258
square
#281272 #72122C #5C7212 #127258
split-complementary
#281272 #725812 #2C7212
monochromatic
#09041A #150A3D #281272 #3B1AA7 #4D23DC

Accessibility & contrast

On white

14.79
#281272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281272
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281272#FFFFFF#000000##FFFFFF
##2812721.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281272;
/* rgb */ color: rgb(40, 18, 114);
/* oklch */ color: oklch(29.3% 0.150 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d549c',
    500: '#281272',
    950: '#000000',
  },
}
SCSS
$custom: #281272;
$custom-light: #6d549c;
$custom-dark: #000000;
JSON
{
  "hex": "#281272",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 253.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29294,
    "c": 0.14954,
    "h": 282.6
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#281272
secondary
#8FA937
accent
#EF38C5
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281272

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

Preview Lab → · Contrast checker → · Palette generator →

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