#462271#462271

#462271 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.130 H 300.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#462271
RGBrgb(70, 34, 113)
HSLhsl(267, 54%, 29%)
HSVhsv(267, 70%, 44%)
CMYKcmyk(38.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(22.44, 34.26, -39.27)
CIE-LCHlch(22.44, 52.12, 311.10°)
OKLaboklab(34.64% 0.0663 -0.1118)
OKLCHoklch(34.64% 0.13 300.7)
XYZxyz(6.0777, 3.6384, 16.0017)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462271 #4D7122
analogous
#222671 #462271 #6E2271
triadic
#462271 #714622 #227146
tetradic
#462271 #712226 #4D7122 #22716E
square
#462271 #712226 #4D7122 #22716E
split-complementary
#462271 #716E22 #267122
monochromatic
#0F0718 #291442 #462271 #6330A0 #8146C7

Accessibility & contrast

On white

12.16
#462271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#462271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462271
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462271#FFFFFF#000000##FFFFFF
##4622711.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#3D3446
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #462271;
/* rgb */ color: rgb(70, 34, 113);
/* oklch */ color: oklch(34.6% 0.130 300.7);
Tailwind
colors: {
  custom: {
    50: '#7d609a',
    500: '#462271',
    950: '#000000',
  },
}
SCSS
$custom: #462271;
$custom-light: #7d609a;
$custom-dark: #000000;
JSON
{
  "hex": "#462271",
  "rgb": {
    "r": 70,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 267.342,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.12995,
    "h": 300.7
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#462271
secondary
#7BA44A
accent
#DD4B9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #462271

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

Preview Lab → · Contrast checker → · Palette generator →

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