#281071#281071

#281071 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.150 H 283.1°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#281071
RGBrgb(40, 16, 113)
HSLhsl(255, 75%, 25%)
HSVhsv(255, 86%, 44%)
CMYKcmyk(64.6%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.56, 38.47, -50.68)
CIE-LCHlch(15.56, 63.62, 307.20°)
OKLaboklab(28.96% 0.034 -0.1461)
OKLCHoklch(28.96% 0.15 283.1)
XYZxyz(4.0401, 2.0137, 15.7954)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281071 #597110
analogous
#102971 #281071 #581071
triadic
#281071 #712810 #107128
tetradic
#281071 #711029 #597110 #107158
square
#281071 #711029 #597110 #107158
split-complementary
#281071 #715810 #297110
monochromatic
#09041B #15083B #281071 #3B18A7 #4E1FDC

Accessibility & contrast

On white

14.97
#281071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#281071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281071
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281071#FFFFFF#000000##FFFFFF
##2810711.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #281071;
/* rgb */ color: rgb(40, 16, 113);
/* oklch */ color: oklch(29.0% 0.150 283.1);
Tailwind
colors: {
  custom: {
    50: '#6d539b',
    500: '#281071',
    950: '#000000',
  },
}
SCSS
$custom: #281071;
$custom-light: #6d539b;
$custom-dark: #000000;
JSON
{
  "hex": "#281071",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 254.845,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28959,
    "c": 0.15005,
    "h": 283.1
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#281071
secondary
#8CA934
accent
#F236C3
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281071

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

Preview Lab → · Contrast checker → · Palette generator →

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