#46187A#46187A

#46187A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.153 H 299.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#46187A
RGBrgb(70, 24, 122)
HSLhsl(268, 67%, 29%)
HSVhsv(268, 80%, 48%)
CMYKcmyk(42.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(21.43, 41.69, -46.67)
CIE-LCHlch(21.43, 62.58, 311.77°)
OKLaboklab(34.16% 0.0747 -0.1335)
OKLCHoklch(34.16% 0.153 299.2)
XYZxyz(6.3644, 3.3604, 18.7219)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46187A #4C7A18
analogous
#181B7A #46187A #77187A
triadic
#46187A #7A4618 #187A46
tetradic
#46187A #7A181B #4C7A18 #187A77
square
#46187A #7A181B #4C7A18 #187A77
split-complementary
#46187A #7A7718 #1B7A18
monochromatic
#0F051A #290E47 #46187A #6322AD #8135D7

Accessibility & contrast

On white

12.56
#46187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#46187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46187A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46187A#FFFFFF#000000##FFFFFF
##46187A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#393249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #46187a;
/* rgb */ color: rgb(70, 24, 122);
/* oklch */ color: oklch(34.2% 0.153 299.2);
Tailwind
colors: {
  custom: {
    50: '#7f5ba1',
    500: '#46187a',
    950: '#000000',
  },
}
SCSS
$custom: #46187a;
$custom-light: #7f5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#46187a",
  "rgb": {
    "r": 70,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 268.163,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.15297,
    "h": 299.2
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#46187A
secondary
#7AAF3F
accent
#EA3E99
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46187A

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

Preview Lab → · Contrast checker → · Palette generator →

#46187A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva