#46178F#46178F

#46178F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.177 H 292.8°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#46178F
RGBrgb(70, 23, 143)
HSLhsl(264, 72%, 33%)
HSVhsv(264, 84%, 56%)
CMYKcmyk(51%, 83.9%, 0%, 43.9%)
CIE-LABlab(23.33, 47.65, -56.78)
CIE-LCHlch(23.33, 74.12, 310.00°)
OKLaboklab(36.1% 0.0685 -0.1631)
OKLCHoklch(36.1% 0.177 292.8)
XYZxyz(7.7887, 3.8978, 26.3232)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46178F #608F17
analogous
#17248F #46178F #82178F
triadic
#46178F #8F4617 #178F46
tetradic
#46178F #8F1724 #608F17 #178F82
square
#46178F #8F1724 #608F17 #178F82
split-complementary
#46178F #8F8217 #248F17
monochromatic
#120626 #2C0F5A #46178F #601FC4 #7F40E0

Accessibility & contrast

On white

11.80
#46178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#46178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46178F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46178F#FFFFFF#000000##FFFFFF
##46178F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#2E3B54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #46178f;
/* rgb */ color: rgb(70, 23, 143);
/* oklch */ color: oklch(36.1% 0.177 292.8);
Tailwind
colors: {
  custom: {
    50: '#825cb1',
    500: '#46178f',
    950: '#000000',
  },
}
SCSS
$custom: #46178f;
$custom-light: #825cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#46178f",
  "rgb": {
    "r": 70,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 263.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36102,
    "c": 0.17688,
    "h": 292.8
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#46178F
secondary
#8FC141
accent
#EF39A8
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #46178F

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

Preview Lab → · Contrast checker → · Palette generator →

#46178F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva