#431171#431171

#431171 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.150 H 301.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#431171
RGBrgb(67, 17, 113)
HSLhsl(271, 74%, 25%)
HSVhsv(271, 85%, 44%)
CMYKcmyk(40.7%, 85%, 0%, 55.7%)
CIE-LABlab(19.17, 41.75, -44.62)
CIE-LCHlch(19.17, 61.11, 313.10°)
OKLaboklab(32.23% 0.0786 -0.1275)
OKLCHoklch(32.23% 0.15 301.7)
XYZxyz(5.4951, 2.7864, 15.8679)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#431171 #3F7111
analogous
#131171 #431171 #71116F
triadic
#431171 #714311 #117143
tetradic
#431171 #711311 #3F7111 #116F71
square
#431171 #711311 #3F7111 #116F71
split-complementary
#431171 #6F7111 #117113
monochromatic
#10041B #23093C #431171 #6319A6 #8221DB

Accessibility & contrast

On white

13.49
#431171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#431171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #431171
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##431171#FFFFFF#000000##FFFFFF
##4311711.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#392C42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #431171;
/* rgb */ color: rgb(67, 17, 113);
/* oklch */ color: oklch(32.2% 0.150 301.7);
Tailwind
colors: {
  custom: {
    50: '#7d579b',
    500: '#431171',
    950: '#000000',
  },
}
SCSS
$custom: #431171;
$custom-light: #7d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#431171",
  "rgb": {
    "r": 67,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 271.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32234,
    "c": 0.14977,
    "h": 301.7
  },
  "luminance": 0.02786
}

Semantic roles & 50–950 ramp

primary
#431171
secondary
#6DA836
accent
#F13790
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #431171

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

Preview Lab → · Contrast checker → · Palette generator →

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