#462172#462172

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

Color values

HEX#462172
RGBrgb(70, 33, 114)
HSLhsl(267, 55%, 29%)
HSVhsv(267, 71%, 45%)
CMYKcmyk(38.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(22.32, 35.09, -40.11)
CIE-LCHlch(22.32, 53.29, 311.18°)
OKLaboklab(34.58% 0.0673 -0.1142)
OKLCHoklch(34.58% 0.133 300.5)
XYZxyz(6.1062, 3.6047, 16.2904)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462172 #4D7221
analogous
#212572 #462172 #6F2172
triadic
#462172 #724621 #217246
tetradic
#462172 #722125 #4D7221 #21726F
square
#462172 #722125 #4D7221 #21726F
split-complementary
#462172 #726F21 #257221
monochromatic
#0F0718 #291343 #462172 #632FA1 #8144C9

Accessibility & contrast

On white

12.20
#462172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#462172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462172
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462172#FFFFFF#000000##FFFFFF
##4621721.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#3C3446
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #462172;
/* rgb */ color: rgb(70, 33, 114);
/* oklch */ color: oklch(34.6% 0.133 300.5);
Tailwind
colors: {
  custom: {
    50: '#7e5f9b',
    500: '#462172',
    950: '#000000',
  },
}
SCSS
$custom: #462172;
$custom-light: #7e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#462172",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 267.407,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34575,
    "c": 0.13258,
    "h": 300.5
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#462172
secondary
#7BA549
accent
#DE499A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #462172

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

Preview Lab → · Contrast checker → · Palette generator →

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