#46187C#46187C

#46187C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 298.5°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#46187C
RGBrgb(70, 24, 124)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 49%)
CMYKcmyk(43.5%, 80.6%, 0%, 51.4%)
CIE-LABlab(21.62, 42.21, -47.65)
CIE-LCHlch(21.62, 63.66, 311.54°)
OKLaboklab(34.35% 0.0741 -0.1363)
OKLCHoklch(34.35% 0.155 298.5)
XYZxyz(6.4896, 3.4105, 19.3813)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46187C #4E7C18
analogous
#181C7C #46187C #78187C
triadic
#46187C #7C4618 #187C46
tetradic
#46187C #7C181C #4E7C18 #187C78
square
#46187C #7C181C #4E7C18 #187C78
split-complementary
#46187C #7C7818 #1C7C18
monochromatic
#0E051A #290E49 #46187C #6322AF #8136D8

Accessibility & contrast

On white

12.48
#46187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#46187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46187C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46187C#FFFFFF#000000##FFFFFF
##46187C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#38334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #46187c;
/* rgb */ color: rgb(70, 24, 124);
/* oklch */ color: oklch(34.4% 0.155 298.5);
Tailwind
colors: {
  custom: {
    50: '#7f5ba3',
    500: '#46187c',
    950: '#000000',
  },
}
SCSS
$custom: #46187c;
$custom-light: #7f5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#46187c",
  "rgb": {
    "r": 70,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 267.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3435,
    "c": 0.15518,
    "h": 298.5
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#46187C
secondary
#7CB13F
accent
#EA3D9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46187C

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

Preview Lab → · Contrast checker → · Palette generator →

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