#462178#462178

#462178 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.140 H 298.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#462178
RGBrgb(70, 33, 120)
HSLhsl(266, 57%, 30%)
HSVhsv(266, 73%, 47%)
CMYKcmyk(41.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(22.81, 36.74, -43.15)
CIE-LCHlch(22.81, 56.67, 310.42°)
OKLaboklab(35.08% 0.0663 -0.1232)
OKLCHoklch(35.08% 0.14 298.3)
XYZxyz(6.4589, 3.7458, 18.1484)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462178 #537821
analogous
#212878 #462178 #712178
triadic
#462178 #784621 #217846
tetradic
#462178 #782128 #537821 #217871
square
#462178 #782128 #537821 #217871
split-complementary
#462178 #787121 #287821
monochromatic
#0E0718 #2A1448 #462178 #622EA8 #8047CC

Accessibility & contrast

On white

12.01
#462178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#462178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462178
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462178#FFFFFF#000000##FFFFFF
##4621781.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#3A364A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #462178;
/* rgb */ color: rgb(70, 33, 120);
/* oklch */ color: oklch(35.1% 0.140 298.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fa0',
    500: '#462178',
    950: '#000000',
  },
}
SCSS
$custom: #462178;
$custom-light: #7e5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#462178",
  "rgb": {
    "r": 70,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 265.517,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.13988,
    "h": 298.3
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#462178
secondary
#82AB4A
accent
#E0489F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #462178

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

Preview Lab → · Contrast checker → · Palette generator →

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