#46187F#46187F

#46187F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.158 H 297.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#46187F
RGBrgb(70, 24, 127)
HSLhsl(267, 68%, 30%)
HSVhsv(267, 81%, 50%)
CMYKcmyk(44.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(21.90, 43.00, -49.09)
CIE-LCHlch(21.90, 65.26, 311.22°)
OKLaboklab(34.63% 0.0732 -0.1406)
OKLCHoklch(34.63% 0.158 297.5)
XYZxyz(6.6822, 3.4875, 20.3957)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46187F #517F18
analogous
#181E7F #46187F #7A187F
triadic
#46187F #7F4618 #187F46
tetradic
#46187F #7F181E #517F18 #187F7A
square
#46187F #7F181E #517F18 #187F7A
split-complementary
#46187F #7F7A18 #1E7F18
monochromatic
#0E051A #2A0E4C #46187F #6222B2 #8038D9

Accessibility & contrast

On white

12.37
#46187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#46187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46187F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46187F#FFFFFF#000000##FFFFFF
##46187F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#37354B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #46187f;
/* rgb */ color: rgb(70, 24, 127);
/* oklch */ color: oklch(34.6% 0.158 297.5);
Tailwind
colors: {
  custom: {
    50: '#805ba5',
    500: '#46187f',
    950: '#000000',
  },
}
SCSS
$custom: #46187f;
$custom-light: #805ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#46187f",
  "rgb": {
    "r": 70,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 266.796,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.15849,
    "h": 297.5
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#46187F
secondary
#80B33F
accent
#EB3D9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46187F

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

Preview Lab → · Contrast checker → · Palette generator →

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