#281175#281175

#281175 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.154 H 282.0°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#281175
RGBrgb(40, 17, 117)
HSLhsl(254, 75%, 26%)
HSVhsv(254, 85%, 46%)
CMYKcmyk(65.8%, 85.5%, 0%, 54.1%)
CIE-LABlab(16.19, 39.23, -52.23)
CIE-LCHlch(16.19, 65.32, 306.91°)
OKLaboklab(29.53% 0.032 -0.1507)
OKLCHoklch(29.53% 0.154 282)
XYZxyz(4.2854, 2.1361, 17.0126)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281175 #5E7511
analogous
#112C75 #281175 #5A1175
triadic
#281175 #752811 #117528
tetradic
#281175 #75112C #5E7511 #11755A
square
#281175 #75112C #5E7511 #11755A
split-complementary
#281175 #755A11 #2C7511
monochromatic
#09041B #160940 #281175 #3A19AA #4D22DF

Accessibility & contrast

On white

14.71
#281175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281175
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281175#FFFFFF#000000##FFFFFF
##2811751.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281175;
/* rgb */ color: rgb(40, 17, 117);
/* oklch */ color: oklch(29.5% 0.154 282.0);
Tailwind
colors: {
  custom: {
    50: '#6e549e',
    500: '#281175',
    950: '#000000',
  },
}
SCSS
$custom: #281175;
$custom-light: #6e549e;
$custom-dark: #000000;
JSON
{
  "hex": "#281175",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 253.8,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2953,
    "c": 0.15405,
    "h": 282
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#281175
secondary
#91AC36
accent
#F137C6
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281175

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

Preview Lab → · Contrast checker → · Palette generator →

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