#462168#462168

#462168 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.120 H 304.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#462168
RGBrgb(70, 33, 104)
HSLhsl(271, 52%, 27%)
HSVhsv(271, 68%, 41%)
CMYKcmyk(32.7%, 68.3%, 0%, 59.2%)
CIE-LABlab(21.54, 32.38, -34.89)
CIE-LCHlch(21.54, 47.60, 312.86°)
OKLaboklab(33.77% 0.0685 -0.0989)
OKLCHoklch(33.77% 0.12 304.7)
XYZxyz(5.5678, 3.3893, 13.4549)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462168 #436821
analogous
#232168 #462168 #682167
triadic
#462168 #684621 #216846
tetradic
#462168 #682321 #436821 #216768
square
#462168 #682321 #436821 #216768
split-complementary
#462168 #676821 #216823
monochromatic
#100717 #27123A #462168 #653096 #8441C3

Accessibility & contrast

On white

12.52
#462168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#462168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462168
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462168#FFFFFF#000000##FFFFFF
##4621681.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#0D3466
Tritanopia (blue-blind)
#403041
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #462168;
/* rgb */ color: rgb(70, 33, 104);
/* oklch */ color: oklch(33.8% 0.120 304.7);
Tailwind
colors: {
  custom: {
    50: '#7d5f94',
    500: '#462168',
    950: '#000000',
  },
}
SCSS
$custom: #462168;
$custom-light: #7d5f94;
$custom-dark: #000000;
JSON
{
  "hex": "#462168",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 271.268,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.12031,
    "h": 304.7
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#462168
secondary
#719C49
accent
#DB4D91
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #462168

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

Preview Lab → · Contrast checker → · Palette generator →

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