#431271#431271

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

Color values

HEX#431271
RGBrgb(67, 18, 113)
HSLhsl(271, 73%, 26%)
HSVhsv(271, 84%, 44%)
CMYKcmyk(40.7%, 84.1%, 0%, 55.7%)
CIE-LABlab(19.30, 41.37, -44.40)
CIE-LCHlch(19.30, 60.68, 312.98°)
OKLaboklab(32.33% 0.0778 -0.1269)
OKLCHoklch(32.33% 0.149 301.5)
XYZxyz(5.5110, 2.8181, 15.8732)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#431271 #407112
analogous
#131271 #431271 #71126F
triadic
#431271 #714312 #127143
tetradic
#431271 #711312 #407112 #126F71
square
#431271 #711312 #407112 #126F71
split-complementary
#431271 #6F7112 #127113
monochromatic
#10041A #240A3C #431271 #621AA6 #8223DB

Accessibility & contrast

On white

13.43
#431271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #431271
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##431271#FFFFFF#000000##FFFFFF
##4312711.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #431271;
/* rgb */ color: rgb(67, 18, 113);
/* oklch */ color: oklch(32.3% 0.149 301.5);
Tailwind
colors: {
  custom: {
    50: '#7d579b',
    500: '#431271',
    950: '#000000',
  },
}
SCSS
$custom: #431271;
$custom-light: #7d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#431271",
  "rgb": {
    "r": 67,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 270.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32326,
    "c": 0.14882,
    "h": 301.5
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#431271
secondary
#6EA837
accent
#EF3991
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #431271

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

Preview Lab → · Contrast checker → · Palette generator →

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