#431172#431172

#431172 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.151 H 301.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#431172
RGBrgb(67, 17, 114)
HSLhsl(271, 74%, 26%)
HSVhsv(271, 85%, 45%)
CMYKcmyk(41.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(19.26, 42.01, -45.11)
CIE-LCHlch(19.26, 61.64, 312.96°)
OKLaboklab(32.33% 0.0783 -0.1289)
OKLCHoklch(32.33% 0.151 301.3)
XYZxyz(5.5517, 2.8091, 16.1660)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#431172 #407211
analogous
#121172 #431172 #721170
triadic
#431172 #724311 #117243
tetradic
#431172 #721211 #407211 #117072
square
#431172 #721211 #407211 #117072
split-complementary
#431172 #707211 #117212
monochromatic
#10041B #24093D #431172 #6219A7 #8221DD

Accessibility & contrast

On white

13.45
#431172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #431172
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##431172#FFFFFF#000000##FFFFFF
##4311721.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#382C42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #431172;
/* rgb */ color: rgb(67, 17, 114);
/* oklch */ color: oklch(32.3% 0.151 301.3);
Tailwind
colors: {
  custom: {
    50: '#7d579b',
    500: '#431172',
    950: '#000000',
  },
}
SCSS
$custom: #431172;
$custom-light: #7d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#431172",
  "rgb": {
    "r": 67,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 270.928,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32329,
    "c": 0.15082,
    "h": 301.3
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#431172
secondary
#6EA936
accent
#F13791
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #431172

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

Preview Lab → · Contrast checker → · Palette generator →

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